MDL-20534 lti: B3, revert old outputlib hack for external icons
authorEloy Lafuente (stronk7) <stronk7@moodle.org>
Mon, 7 Nov 2011 18:48:02 +0000 (19:48 +0100)
committerEloy Lafuente (stronk7) <stronk7@moodle.org>
Mon, 7 Nov 2011 22:35:58 +0000 (23:35 +0100)
lib/outputlib.php

index efbf616..8feae4c 100644 (file)
@@ -911,12 +911,7 @@ class theme_config {
             $params['component'] = $component;
         }
 
             $params['component'] = $component;
         }
 
-        //Allow references to images on other sites.
-        if(strstr($imagename, '://')){
-            return $imagename;
-        } else {
-            return new moodle_url("$CFG->httpswwwroot/theme/image.php", $params);
-        }
+        return new moodle_url("$CFG->httpswwwroot/theme/image.php", $params);
     }
 
     /**
     }
 
     /**