Merge "Introduce ContentHandler::importTransform."
[lhc/web/wiklou.git] / includes / filerepo / file / ArchivedFile.php
index 439c25f..1eee6a2 100644 (file)
@@ -281,6 +281,10 @@ class ArchivedFile {
         * @return string
         */
        public function getName() {
+               if ( $this->name === false ) {
+                       $this->load();
+               }
+
                return $this->name;
        }
 
@@ -475,7 +479,7 @@ class ArchivedFile {
        /**
         * Return the user name of the uploader.
         *
-        * @deprecated 1.23 Use getUser( 'text' ) instead.
+        * @deprecated since 1.23 Use getUser( 'text' ) instead.
         * @return string
         */
        public function getUserText() {