Merge "Prevent deleteBatch.php deleting files from redirects"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Fri, 23 May 2014 20:19:19 +0000 (20:19 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Fri, 23 May 2014 20:19:19 +0000 (20:19 +0000)
includes/HistoryBlob.php
includes/filerepo/file/ArchivedFile.php

index e95536a..06e5ecc 100644 (file)
@@ -374,7 +374,7 @@ class DiffHistoryBlob implements HistoryBlob {
        protected $mDefaultKey;
 
        /** @var string Compressed storage */
-       protected $mCompressed;
+       public $mCompressed;
 
        /** @var bool True if the object is locked against further writes */
        protected $mFrozen = false;
index 845fd71..1eee6a2 100644 (file)
@@ -281,6 +281,10 @@ class ArchivedFile {
         * @return string
         */
        public function getName() {
+               if ( $this->name === false ) {
+                       $this->load();
+               }
+
                return $this->name;
        }