MDL-19756 Removing debugging call

This commit is contained in:
nicolasconnault
2009-07-27 10:41:38 +00:00
parent f8065dd287
commit 5c023b2b7b
+1 -1
View File
@@ -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.');