* (bug 4298) Include rc_id on enhanced RC singleton diff links for patrolling
[lhc/web/wiklou.git] / includes / SpecialWatchlist.php
index 7702727..4ab7c21 100644 (file)
@@ -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;
@@ -293,13 +293,7 @@ function wfSpecialWatchlist( $par ) {
        $wgOut->addHTML( "</p>\n" );
        /* End bottom header */
 
-       $sk = $wgUser->getSkin();
-
-       if ( $wgUser->getOption('usenewrc') ) {
-               $list =& new EnhancedChangesList( $sk );
-       } else {
-               $list =& new OldChangesList( $sk );
-       }
+       $list = ChangesList::newFromUser( $wgUser );
 
        $s = $list->beginRecentChangesList();
        $counter = 1;