fixed invalid object creation
authorPetr Skoda <skodak@moodle.org>
Sat, 18 Sep 2010 11:15:45 +0000 (11:15 +0000)
committerPetr Skoda <skodak@moodle.org>
Sat, 18 Sep 2010 11:15:45 +0000 (11:15 +0000)
lib/deprecatedlib.php

index fe6d2ed..498aea1 100644 (file)
@@ -3589,7 +3589,7 @@ function print_heading_with_help($text, $helppage, $module='moodle', $icon=false
     // Extract the src from $icon if it exists
     if (preg_match('/src="([^"]*)"/', $icon, $matches)) {
         $icon = $matches[1];
-        $icon = moodle_url($icon);
+        $icon = new moodle_url($icon);
     } else {
         $icon = '';
     }