disallow embedded line breaks in ISBNs; allowing them breaks things in a most interes...
[lhc/web/wiklou.git] / includes / ExternalEdit.php
index 21f632e..14b55fd 100644 (file)
@@ -48,7 +48,7 @@ class ExternalEdit {
                        $extension="wiki";
                } elseif($this->mMode=="file") {
                        $type="Edit file";
-                       $image = Image::newFromTitle( $this->mTitle );
+                       $image = new Image( $this->mTitle );
                        $img_url = $image->getURL();
                        if(strpos($img_url,"://")) {
                                $url = $img_url;