PDA

View Full Version : MyImages Bug


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";
}

Cameron Allen
11-22-2004, 01:58 PM
Thankyou for your attention to this. We are releasing a bug release today, that will have this bug fixxed as well as some others.