Followup to r44204. Hardcoding image because it should (in theory) work always and...
authorChad Horohoe <demon@users.mediawiki.org>
Thu, 4 Dec 2008 01:58:45 +0000 (01:58 +0000)
committerChad Horohoe <demon@users.mediawiki.org>
Thu, 4 Dec 2008 01:58:45 +0000 (01:58 +0000)
includes/filerepo/FileRepo.php

index 6208976..bc76c13 100644 (file)
@@ -262,10 +262,10 @@ abstract class FileRepo {
                if ( is_null( $this->descBaseUrl ) ) {
                        if ( !is_null( $this->articleUrl ) ) {
                                $this->descBaseUrl = str_replace( '$1',
-                                       wfUrlencode( MWNamespace::getCanonicalName( NS_FILE ) ) . ':', $this->articleUrl );
+                                       wfUrlencode( 'Image:', $this->articleUrl );
                        } elseif ( !is_null( $this->scriptDirUrl ) ) {
                                $this->descBaseUrl = $this->scriptDirUrl . '/index.php?title=' .
-                                       wfUrlencode( MWNamespace::getCanonicalName( NS_FILE ) ) . ':';
+                                       wfUrlencode( 'Image:';
                        } else {
                                $this->descBaseUrl = false;
                        }