FileRepo: LocalFile::getUser() should load data
authorRoan Kattouw <catrope@users.mediawiki.org>
Sun, 20 Jan 2008 12:17:43 +0000 (12:17 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Sun, 20 Jan 2008 12:17:43 +0000 (12:17 +0000)
includes/filerepo/LocalFile.php

index 1a098ca..3501228 100644 (file)
@@ -389,6 +389,7 @@ class LocalFile extends File
         * @param $type string 'text' or 'id'
         */
        function getUser($type='text') {
+               $this->load();
                if( $type == 'text' ) {
                        return $this->user_text;
                } elseif( $type == 'id' ) {