X-Git-Url: https://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2FPreferences.php;h=9b0ada812a8109bae4861e7929619f55f140857b;hb=62961558a5b0bc61f752bd816ad633b7cacc02a9;hp=84d41895244c8ff01afc89f961eb57326f686106;hpb=eca35903a2390bf7eb503fa0ede6a76ce556dc55;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/Preferences.php b/includes/Preferences.php index 84d4189524..9b0ada812a 100644 --- a/includes/Preferences.php +++ b/includes/Preferences.php @@ -657,8 +657,9 @@ class Preferences { $now = wfTimestampNow(); $lang = $context->getLanguage(); $nowlocal = Xml::element( 'span', array( 'id' => 'wpLocalTime' ), - $lang->time( $now, true ) ); - $nowserver = $lang->time( $now, false ) . + $lang->userTime( $now, $user ) ); + $nowserver = $lang->userTime( $now, $user, + array( 'format' => false, 'timecorrection' => false ) ) . Html::hidden( 'wpServerTime', (int)substr( $now, 8, 2 ) * 60 + (int)substr( $now, 10, 2 ) ); $defaultPreferences['nowserver'] = array( @@ -893,6 +894,9 @@ class Preferences { 'section' => 'rc/advancedrc', 'label-message' => 'tog-hidepatrolled', ); + } + + if ( $user->useNPPatrol() ) { $defaultPreferences['newpageshidepatrolled'] = array( 'type' => 'toggle', 'section' => 'rc/advancedrc', @@ -991,7 +995,7 @@ class Preferences { 'label-message' => 'tog-watchlisthideliu', ); - if ( $context->getConfig()->get( 'UseRCPatrol' ) ) { + if ( $user->useRCPatrol() ) { $defaultPreferences['watchlisthidepatrolled'] = array( 'type' => 'toggle', 'section' => 'watchlist/advancedwatchlist', @@ -1094,7 +1098,7 @@ class Preferences { $linkTools = array(); # Mark the default skin - if ( $skinkey == $defaultSkin ) { + if ( strcasecmp( $skinkey, $defaultSkin ) === 0 ) { $linkTools[] = $context->msg( 'default' )->escaped(); $foundDefault = true; }