]> git.mjollnir.org Git - moodle.git/commitdiff
FIxed a typo from long time ago in popup windows from logs
authormoodler <moodler>
Wed, 5 Apr 2006 02:45:13 +0000 (02:45 +0000)
committermoodler <moodler>
Wed, 5 Apr 2006 02:45:13 +0000 (02:45 +0000)
lib/weblib.php

index 64201b0c367489948acdc3e747e25665eddd795d..d56b70d6c691047fce6a9b05ff89335977477680 100644 (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 .'" '.