Make $oldFileFromRowFactory public
authorSiebrand Mazeland <s.mazeland@xs4all.nl>
Thu, 28 Nov 2013 10:12:08 +0000 (11:12 +0100)
committerSiebrand Mazeland <s.mazeland@xs4all.nl>
Thu, 28 Nov 2013 10:12:08 +0000 (11:12 +0100)
It was erroneously set to protected, and is being referenced from
LocalFile::getHistory.

Change-Id: Ib2095068b29309b2b7c52b7a8bf93d2bdd008fc3

includes/filerepo/LocalRepo.php

index 0454765..a410eed 100644 (file)
  * @ingroup FileRepo
  */
 class LocalRepo extends FileRepo {
+       public $oldFileFromRowFactory = array( 'OldLocalFile', 'newFromRow' );
+
        protected $fileFactory = array( 'LocalFile', 'newFromTitle' );
        protected $fileFactoryKey = array( 'LocalFile', 'newFromKey' );
        protected $fileFromRowFactory = array( 'LocalFile', 'newFromRow' );
        protected $oldFileFactory = array( 'OldLocalFile', 'newFromTitle' );
        protected $oldFileFactoryKey = array( 'OldLocalFile', 'newFromKey' );
-       protected $oldFileFromRowFactory = array( 'OldLocalFile', 'newFromRow' );
 
        /**
         * @throws MWException