Removed comment that's no longer relevant
[lhc/web/wiklou.git] / includes / RevisionDelete.php
index 7a540a0..b87e158 100644 (file)
@@ -1,4 +1,10 @@
 <?php
+/**
+ * Revision/log/file deletion backend
+ *
+ * @file
+ */
+
 /**
  * Temporary b/c interface, collection of static functions.
  * @ingroup SpecialPage
@@ -150,7 +156,7 @@ class RevisionDeleter {
                        $originalKey = $key = $paramArray[0];
                        // $paramArray[1] is a CSV of the IDs
                        $Ids = explode( ',', $paramArray[1] );
-                       $query = $paramArray[1];
+
                        $revert = array();
                        
                        // For if undeleted revisions are found amidst deleted ones.
@@ -1003,7 +1009,7 @@ class RevDel_FileList extends RevDel_List {
        var $storeBatch, $deleteBatch, $cleanupBatch;
 
        public function doQuery( $db ) {
-               $archiveName = array();
+               $archiveNames = array();
                foreach( $this->ids as $timestamp ) {
                        $archiveNames[] = $timestamp . '!' . $this->title->getDBkey();
                }
@@ -1157,7 +1163,6 @@ class RevDel_FileItem extends RevDel_Item {
                        return '<span class="history-deleted">' . $link . '</span>';
                } else {
                        # Regular files...
-                       $url = $this->file->getUrl();
                        return Xml::element( 'a', array( 'href' => $this->file->getUrl() ), $date );
                }
        }
@@ -1207,7 +1212,6 @@ class RevDel_FileItem extends RevDel_Item {
                        ' (' . 
                        wfMsgExt( 'nbytes', 'parsemag', $wgLang->formatNum( $this->file->getSize() ) ) . 
                        ')';
-               $pageLink = $this->getLink();
 
                return '<li>' . $this->getLink() . ' ' . $this->getUserTools() . ' ' .
                        $data . ' ' . $this->getComment(). '</li>';
@@ -1302,8 +1306,6 @@ class RevDel_LogList extends RevDel_List {
        var $authorNameField = 'log_user_text';
 
        public function doQuery( $db ) {
-               global $wgMessageCache;
-               $wgMessageCache->loadAllMessages();
                $ids = array_map( 'intval', $this->ids );
                return $db->select( 'logging', '*',
                        array( 'log_id' => $ids ),