FIxed a typo from long time ago in popup windows from logs

This commit is contained in:
moodler
2006-04-05 02:45:13 +00:00
parent cb342045ec
commit d2fa35a80d
+1 -1
View File
@@ -561,7 +561,7 @@ function link_to_popup_window ($url, $name='popup', $linkname='click here',
$fullscreen = 0;
if (!(strpos($url,$CFG->wwwroot) === false)) { // some log url entries contain _SERVER[HTTP_REFERRER] in which case wwwroot is already there.
$url = substr($url, strlen($CFG->wwwroot)+1);
$url = substr($url, strlen($CFG->wwwroot));
}
$link = '<a target="'. $name .'" title="'. $title .'" href="'. $CFG->wwwroot . $url .'" '.