]> git.mjollnir.org Git - moodle.git/commitdiff
Minor fix for $imagepath.
authorjulmis <julmis>
Sun, 22 Feb 2004 00:49:13 +0000 (00:49 +0000)
committerjulmis <julmis>
Sun, 22 Feb 2004 00:49:13 +0000 (00:49 +0000)
lib/editor/popups/preview.php

index dd39333c7b49ad15bb7080bdb447fd4d8a457a2f..f2db186ada9760522777fbca9f415c93dfd25990 100644 (file)
@@ -18,6 +18,7 @@
 
     $imageurl = rawurldecode($imageurl);   /// Full URL starts with $CFG->wwwroot/file.php
     $imagepath = str_replace("$CFG->wwwroot/file.php", '', $imageurl);
+    $imagepath = str_replace("?file=", '', $imagepath); // if we're using second option of file path.
     
     if ($imagepath != $imageurl) {         /// This is an internal image
         $size = getimagesize($CFG->dataroot.$imagepath);