Merge "Return $wgSitename as displayname for local repo in filerepoinfo API"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Mon, 5 May 2014 06:38:40 +0000 (06:38 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Mon, 5 May 2014 06:38:40 +0000 (06:38 +0000)
includes/filerepo/FileRepo.php

index 8701849..7d4e8cc 100644 (file)
@@ -1734,9 +1734,10 @@ class FileRepo {
         * @return string
         */
        public function getDisplayName() {
-               // We don't name our own repo, return nothing
+               global $wgSitename;
+
                if ( $this->isLocal() ) {
-                       return null;
+                       return $wgSitename;
                }
 
                // 'shared-repo-name-wikimediacommons' is used when $wgUseInstantCommons = true