From: nicolasconnault Date: Mon, 27 Jul 2009 10:41:38 +0000 (+0000) Subject: MDL-19756 Removing debugging call X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=5c023b2b7b07ffb9cc07464a082b54dceb24acf8;p=moodle.git MDL-19756 Removing debugging call --- diff --git a/lib/weblib.php b/lib/weblib.php index 50b910ac17..40a05b3e07 100644 --- a/lib/weblib.php +++ b/lib/weblib.php @@ -503,7 +503,7 @@ function prepare_url($url, $stripformparams=false) { // Handle relative URLs if (substr($output, 0, 4) != 'http' && substr($output, 0, 1) != '/') { if (preg_match('/(.*)\/([A-Za-z0-9-_]*\.php)$/', $PAGE->url->out(true), $matches)) { - debugging('Relative URLs are deprecated, please use an absolute URL in your code', DEBUG_DEVELOPER); + return $matches[1] . "/$output"; } else { throw new coding_exception('Your page uses bizarre relative URLs which Moodle cannot handle. Please use absolute URLs.');