fixed invalid object creation

This commit is contained in:
Petr Skoda
2010-09-18 11:15:45 +00:00
parent b28242d303
commit 1028ffe191
+1 -1
View 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 = '';
}