* (bug 18259) Special:DeletedContributions now also uses
MediaWiki:Sp-contributions-logs for the link to Special:Log
* Don't add empty title="" attributes to links to anchors on the current page
+* (bug 18291) rebuildrecentchanges.php failed to add deletion log entries
== API changes in 1.15 ==
* (bug 16858) Revamped list=deletedrevs to make listing deleted contributions
}
$cutoff = time() - $wgRCMaxAge;
- $dbw->insertSelect( 'recentchanges', array( 'logging', 'page', 'user' ),
+ list($logging, $page) = $dbw->tableNamesN( 'logging', 'page' );
+ $dbw->insertSelect( 'recentchanges', array( 'user', "$logging LEFT JOIN $page ON (log_namespace=page_namespace AND log_title=page_title)" ),
array(
'rc_timestamp' => 'log_timestamp',
'rc_cur_time' => 'log_timestamp',
'rc_this_oldid' => 0,
'rc_last_oldid' => 0,
'rc_type' => RC_LOG,
- 'rc_cur_id' => 'page_id',
+ 'rc_cur_id' => 'COALESCE(page_id, 0)',
'rc_log_type' => 'log_type',
'rc_log_action' => 'log_action',
'rc_logid' => 'log_id',
), array(
'log_timestamp > ' . $dbw->addQuotes( $dbw->timestamp( $cutoff ) ),
'log_user=user_id',
- 'log_namespace=page_namespace',
- 'log_title=page_title',
'log_type IN(' . implode(',',$selectLogs) . ')'
), __METHOD__,
array(), // INSERT options