icarrion
11-19-2004, 09:21 AM
This bug was passed on to me by one of my customers.
When dragging a "MyImage" to the page while editing, and then clicking on the image, the dialog on top appears so that you can create a link. In the Internal Link drop down, the page link is incorrect as it links to a number like pr=1493787. This affects the #PAGETITLE# var in 4.7. For your convenience, I've attached the code that fixes this below. The page is sohoadmin/program/modules/page_editor/page_editor.php and it is around lines 1810 - 1817.
for ($a=1;$a<=$numSitePages;$a++) {
if ($tmp == "#EFEFEF") { $tmp = "WHITE"; } else { $tmp = "#EFEFEF"; }
$thisPage = $page_name[$a];
$linkto = eregi_replace(" ", "_", $thisPage);
echo "<option value=\"$linkto\" STYLE='BACKGROUND: $tmp;'>$page_name[$a]</option>\n";
//TAKEN OUT BECAUSE LINK WAS WRONG. echo "<option value=\"$pageLink[$a]\" STYLE='BACKGROUND: $tmp;'>$page_name[$a]</option>\n";
}
When dragging a "MyImage" to the page while editing, and then clicking on the image, the dialog on top appears so that you can create a link. In the Internal Link drop down, the page link is incorrect as it links to a number like pr=1493787. This affects the #PAGETITLE# var in 4.7. For your convenience, I've attached the code that fixes this below. The page is sohoadmin/program/modules/page_editor/page_editor.php and it is around lines 1810 - 1817.
for ($a=1;$a<=$numSitePages;$a++) {
if ($tmp == "#EFEFEF") { $tmp = "WHITE"; } else { $tmp = "#EFEFEF"; }
$thisPage = $page_name[$a];
$linkto = eregi_replace(" ", "_", $thisPage);
echo "<option value=\"$linkto\" STYLE='BACKGROUND: $tmp;'>$page_name[$a]</option>\n";
//TAKEN OUT BECAUSE LINK WAS WRONG. echo "<option value=\"$pageLink[$a]\" STYLE='BACKGROUND: $tmp;'>$page_name[$a]</option>\n";
}