X-Git-Url: https://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2FSpecialWatchlist.php;h=4ab7c215d6da37301244a2597b4a08dd4d448915;hb=f10d65f0a3b716b7cc90f4aacec388e21f8ef644;hp=768bd4673e3117585edada4661a16a03cbe1fb9f;hpb=d41804318e42ea4f1409fe2b390427c2f38f8cc2;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/SpecialWatchlist.php b/includes/SpecialWatchlist.php index 768bd4673e..4ab7c215d6 100644 --- a/includes/SpecialWatchlist.php +++ b/includes/SpecialWatchlist.php @@ -15,7 +15,7 @@ require_once( 'WatchedItem.php' ); * 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; @@ -208,7 +208,7 @@ function wfSpecialWatchlist( $par ) { if( $wgFilterRobotsWL ) { $andHideBotsOptional = $hideBots ? "AND (rc_bot = 0)" : ''; } else { - $andHideBotsOptional = "AND AND rc_this_oldid=page_latest"; + $andHideBotsOptional = "AND rc_this_oldid=page_latest"; } @@ -250,7 +250,6 @@ function wfSpecialWatchlist( $par ) { 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"; @@ -294,8 +293,8 @@ function wfSpecialWatchlist( $par ) { $wgOut->addHTML( "

\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 ) ) {