Merge "mediawiki.jqueryMsg: Prevent default action for functions as external link"
[lhc/web/wiklou.git] / includes / revisiondelete / RevDelFileList.php
index f485d16..57e15d8 100644 (file)
  */
 class RevDelFileList extends RevDelList {
        /** @var array */
-       var $storeBatch;
+       public $storeBatch;
 
        /** @var array */
-       var $deleteBatch;
+       public $deleteBatch;
 
        /** @var array */
-       var $cleanupBatch;
+       public $cleanupBatch;
 
        public function getType() {
                return 'oldimage';
@@ -58,7 +58,16 @@ class RevDelFileList extends RevDelList {
                        $archiveNames[] = $timestamp . '!' . $this->title->getDBkey();
                }
 
-               return $db->select( 'oldimage', OldLocalFile::selectFields(), array( 'oi_name' => $this->title->getDBkey(), 'oi_archive_name' => $archiveNames ), __METHOD__, array( 'ORDER BY' => 'oi_timestamp DESC' ) );
+               return $db->select(
+                       'oldimage',
+                       OldLocalFile::selectFields(),
+                       array(
+                               'oi_name' => $this->title->getDBkey(),
+                               'oi_archive_name' => $archiveNames
+                       ),
+                       __METHOD__,
+                       array( 'ORDER BY' => 'oi_timestamp DESC' )
+               );
        }
 
        public function newItem( $row ) {
@@ -116,4 +125,4 @@ class RevDelFileList extends RevDelList {
        public function getSuppressBit() {
                return File::DELETED_RESTRICTED;
        }
-}
\ No newline at end of file
+}