<?php
+/**
+ * Revision/log/file deletion backend
+ *
+ * @file
+ */
+
/**
* Temporary b/c interface, collection of static functions.
* @ingroup SpecialPage
$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.
var $storeBatch, $deleteBatch, $cleanupBatch;
public function doQuery( $db ) {
- $archiveName = array();
+ $archiveNames = array();
foreach( $this->ids as $timestamp ) {
$archiveNames[] = $timestamp . '!' . $this->title->getDBkey();
}
return '<span class="history-deleted">' . $link . '</span>';
} else {
# Regular files...
- $url = $this->file->getUrl();
return Xml::element( 'a', array( 'href' => $this->file->getUrl() ), $date );
}
}
' (' .
wfMsgExt( 'nbytes', 'parsemag', $wgLang->formatNum( $this->file->getSize() ) ) .
')';
- $pageLink = $this->getLink();
return '<li>' . $this->getLink() . ' ' . $this->getUserTools() . ' ' .
$data . ' ' . $this->getComment(). '</li>';
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 ),