User#getOption: Check ignoreHidden before $wgHiddenPrefs
authorTimo Tijhof <krinklemail@gmail.com>
Fri, 19 Jul 2013 02:31:33 +0000 (04:31 +0200)
committerMatmarex <matma.rex@gmail.com>
Mon, 22 Jul 2013 13:43:59 +0000 (13:43 +0000)
Change-Id: Icb1aab8cd8dc15387d199bb51ca2cd72de6dba88

includes/User.php

index 685bce7..b09d79c 100644 (file)
@@ -2292,7 +2292,7 @@ class User {
                # set it, and then it was disabled removing their ability to change it).  But
                # we don't want to erase the preferences in the database in case the preference
                # is re-enabled again.  So don't touch $mOptions, just override the returned value
-               if ( in_array( $oname, $wgHiddenPrefs ) && !$ignoreHidden ) {
+               if ( !$ignoreHidden && in_array( $oname, $wgHiddenPrefs ) ) {
                        return self::getDefaultOption( $oname );
                }