Index: trunk/phase3/includes/User.php |
— | — | @@ -814,6 +814,7 @@ |
815 | 815 | } |
816 | 816 | |
817 | 817 | function getPageRenderingHash() { |
| 818 | + global $wgLang; |
818 | 819 | if( $this->mHash ){ |
819 | 820 | return $this->mHash; |
820 | 821 | } |
— | — | @@ -830,6 +831,12 @@ |
831 | 832 | $confstr .= '!' . $this->getOption( 'date' ); |
832 | 833 | $confstr .= '!' . $this->getOption( 'numberheadings' ); |
833 | 834 | |
| 835 | + // add in language variant option if there are multiple variants |
| 836 | + // supported by the language object |
| 837 | + if(sizeof($wgLang->getVariants())>1) { |
| 838 | + $confstr .= '!' . $this->getOption( 'variant' ); |
| 839 | + } |
| 840 | + |
834 | 841 | $this->mHash = $confstr; |
835 | 842 | return $confstr ; |
836 | 843 | } |