* constructor
*/
function wfSpecialWatchlist( $par ) {
- global $wgUser, $wgOut, $wgLang, $wgTitle, $wgMemc, $wgRequest, $wgContLang;
+ global $wgUser, $wgOut, $wgLang, $wgMemc, $wgRequest, $wgContLang;
global $wgUseWatchlistCache, $wgWLCacheTimeout, $wgDBname;
global $wgRCShowWatchingUsers, $wgEnotifWatchlist, $wgShowUpdatedMarker;
global $wgEnotifWatchlist, $wgFilterRobotsWL;
if( $wgFilterRobotsWL ) {
$andHideBotsOptional = $hideBots ? "AND (rc_bot = 0)" : '';
} else {
- $andHideBotsOptional = "AND AND rc_this_oldid=page_latest";
+ $andHideBotsOptional = "AND rc_this_oldid=page_latest";
}
AND wl_title=rc_title
AND rc_timestamp > '$cutoff'
AND rc_cur_id=page_id
- AND rc_this_oldid=page_latest
$andHideOwn
$andHideBotsOptional
ORDER BY rc_timestamp DESC";
$wgOut->addHTML( "</p>\n" );
/* End bottom header */
- $sk = $wgUser->getSkin();
- $list =& new ChangesList( $sk );
+ $list = ChangesList::newFromUser( $wgUser );
+
$s = $list->beginRecentChangesList();
$counter = 1;
while ( $obj = $dbr->fetchObject( $res ) ) {