}
// Figure out which conditions can be done.
- $join_field = '';
if ( in_array( 'recentchanges', $tables ) ) {
$join_cond = 'rc_id';
} elseif( in_array( 'logging', $tables ) ) {
$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.
# 2. minor edits (changes) are only regarded if the global flag indicates so
$isUserTalkPage = ($title->getNamespace() == NS_USER_TALK);
- $enotifusertalkpage = ($isUserTalkPage && $wgEnotifUserTalk);
- $enotifwatchlistpage = $wgEnotifWatchlist;
$this->title = $title;
$this->timestamp = $timestamp;
}
function getLongDesc( $image ) {
- global $wgUser, $wgLang;
- $sk = $wgUser->getSkin();
+ global $wgLang;
+
$original = parent::getLongDesc( $image );
wfSuppressWarnings();
function __construct( $oldTitle, $newTitle ) {
global $wgRequest, $wgUser;
- $target = isset($par) ? $par : $wgRequest->getVal( 'target' );
+
$this->oldTitle = $oldTitle;
$this->newTitle = $newTitle;
$this->reason = $wgRequest->getText( 'wpReason' );
$wgOut->addHTML( "<ul>" );
- $where = $revObjs = array();
-
$numRevisions = 0;
// Live revisions...
$list = $this->getList();
}
function execute( $par ) {
- global $wgOut, $wgUser, $wgMessageCache;
+ global $wgOut, $wgMessageCache;
$wgMessageCache->loadAllMessages();
- $sk = $wgUser->getSkin();
$wgOut->setPageTitle( wfMsg( 'tags-title' ) );
$wgOut->wrapWikiMsg( "<div class='mw-tags-intro'>\n$1\n</div>", 'tags-intro' );
$cond = "log_id BETWEEN $blockStart AND $blockEnd AND log_user = user_id";
$res = $db->select( array( 'logging', 'user' ),
array( 'log_id', 'user_name' ), $cond, __METHOD__ );
- $batch = array();
+
$db->begin();
foreach ( $res as $row ) {
$db->update( 'logging', array( 'log_user_text' => $row->user_name ),
}
$imageTable = $dbw->tableName( 'image' );
$oldimageTable = $dbw->tableName( 'oldimage' );
- $batch = array();
-
+
if ( $method == 'pipe' ) {
// @fixme kill this and replace with a second unbuffered DB connection.
global $wgDBuser, $wgDBserver, $wgDBpassword, $wgDBname;
print "Moving text rows from $minID to $maxID to external storage\n";
$ext = new ExternalStoreDB;
$numMoved = 0;
- $numStubs = 0;
-
+
for ( $block = 0; $block < $numBlocks; $block++ ) {
$blockStart = $block * $blockSize + $minID;
$blockEnd = $blockStart + $blockSize - 1;
}
public function execute() {
- $extDBs = array();
$dbr = wfGetDB( DB_SLAVE );
if ( !$dbr->tableExists( 'blob_orphans' ) ) {
$this->error( "blob_orphans doesn't seem to exist, need to run trackBlobs.php first", true );
'sessionkey' => null,
);
}
-
-
}
-
class ApiTest extends ApiTestSetup {
function setup() {
} else {
$talkId = "{$subjectId}_talk";
}
- $currentId = $isTalk ? $talkId : $subjectId;
// Adds namespace links
$links['namespaces'][$subjectId] = $this->tabAction(