diff options
Diffstat (limited to 'includes/User.php')
-rw-r--r-- | includes/User.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/includes/User.php b/includes/User.php index 90b2dfeb5531..f46c9f0d7459 100644 --- a/includes/User.php +++ b/includes/User.php @@ -1012,7 +1012,7 @@ class User { } function getPageRenderingHash() { - global $wgContLang; + global $wgContLang; if( $this->mHash ){ return $this->mHash; } @@ -1029,10 +1029,10 @@ class User { $confstr .= '!' . $this->getOption( 'date' ); $confstr .= '!' . $this->getOption( 'numberheadings' ); $confstr .= '!' . $this->getOption( 'language' ); - // add in language variant option if there are multiple variants - // supported by the language object - if(sizeof($wgContLang->getVariants())>1) { - $confstr .= '!' . $this->getOption( 'variant' ); + // add in language specific options, if any + $extra = $wgContLang->getExtraHashOptions(); + foreach( $extra as $e ) { + $confstr .= '!' . $this->getOption( $e ); } $this->mHash = $confstr; |