Use $wgLang->getCode() rather than $wgUser->getOption('language') in the parser cache...
authorTim Starling <tstarling@users.mediawiki.org>
Fri, 5 Jan 2007 18:10:22 +0000 (18:10 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Fri, 5 Jan 2007 18:10:22 +0000 (18:10 +0000)
includes/User.php

index e038066..c66c2d7 100644 (file)
@@ -2017,7 +2017,7 @@ class User {
         * @return string
         */
        function getPageRenderingHash() {
-               global $wgContLang, $wgUseDynamicDates;
+               global $wgContLang, $wgUseDynamicDates, $wgLang;
                if( $this->mHash ){
                        return $this->mHash;
                }
@@ -2031,7 +2031,7 @@ class User {
                        $confstr .= '!' . $this->getDatePreference();
                }
                $confstr .= '!' . ($this->getOption( 'numberheadings' ) ? '1' : '');
-               $confstr .= '!' . $this->getOption( 'language' );
+               $confstr .= '!' . $wgLang->getCode();
                $confstr .= '!' . $this->getOption( 'thumbsize' );
                // add in language specific options, if any
                $extra = $wgContLang->getExtraHashOptions();