From: moodler Date: Wed, 5 Apr 2006 02:45:13 +0000 (+0000) Subject: FIxed a typo from long time ago in popup windows from logs X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=d2fa35a80de84a536dde4817c1d7c28dcdeffa62;p=moodle.git FIxed a typo from long time ago in popup windows from logs --- diff --git a/lib/weblib.php b/lib/weblib.php index 64201b0c36..d56b70d6c6 100644 --- a/lib/weblib.php +++ b/lib/weblib.php @@ -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 = '