* (bug 18499) Added "enhanced" URL parameter to switch between old and enhanced chang...
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Sat, 3 Apr 2010 14:48:25 +0000 (14:48 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Sat, 3 Apr 2010 14:48:25 +0000 (14:48 +0000)
RELEASE-NOTES
includes/ChangesList.php

index 12a21f8..be2b5fd 100644 (file)
@@ -37,6 +37,8 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * Support git:// and mms:// protocols by default for external links
 * (bug 15810) Blocked admins can no longer unblock themselves without the
   'unblockself' permission (which they have by default)
+* (bug 18499) Added "enhanced" URL parameter to switch between old and enhanced
+  changes list
 
 === Bug fixes in 1.17 ===
 * (bug 17560) Half-broken deletion moved image files to deletion archive without
index 9f09299..442d011 100644 (file)
@@ -44,11 +44,13 @@ class ChangesList {
         * @return ChangesList derivative
         */
        public static function newFromUser( &$user ) {
+               global $wgRequest;
+
                $sk = $user->getSkin();
                $list = null;
                if( wfRunHooks( 'FetchChangesList', array( &$user, &$sk, &$list ) ) ) {
-                       return $user->getOption( 'usenewrc' ) ?
-                               new EnhancedChangesList( $sk ) : new OldChangesList( $sk );
+                       $new = $wgRequest->getBool( 'enhanced', $user->getOption( 'usenewrc' ) );
+                       return $new ? new EnhancedChangesList( $sk ) : new OldChangesList( $sk );
                } else {
                        return $list;
                }