Index: trunk/extensions/CategoryTree/CategoryTreeFunctions.php |
— | — | @@ -298,16 +298,13 @@ |
299 | 299 | * load CategoryTreeFunctions.php on demand. |
300 | 300 | */ |
301 | 301 | function ajax( $category, $depth = 1 ) { |
302 | | - global $wgUser; |
| 302 | + global $wgContLang, $wgRenderHashAppend; |
303 | 303 | $title = self::makeTitle( $category ); |
304 | 304 | |
305 | 305 | if ( ! $title ) { |
306 | 306 | return false; # TODO: error message? |
307 | 307 | } |
308 | 308 | |
309 | | - # configkey needed to take into account variant and secure options. |
310 | | - $configkey = $wgUser->getPageRenderingHash(); |
311 | | - |
312 | 309 | # Retrieve page_touched for the category |
313 | 310 | $dbkey = $title->getDBkey(); |
314 | 311 | $dbr = wfGetDB( DB_SLAVE ); |
— | — | @@ -317,7 +314,7 @@ |
318 | 315 | 'page_title' => $dbkey, |
319 | 316 | ), __METHOD__ ); |
320 | 317 | |
321 | | - $mckey = wfMemcKey( "categorytree(" . $this->getOptionsAsCacheKey( $depth ) . ")", $dbkey, $configkey ); |
| 318 | + $mckey = wfMemcKey( "categorytree(" . $this->getOptionsAsCacheKey( $depth ) . ")", $dbkey, $wgContLang->getExtraHashOptions(), $wgRenderHashAppend ); |
322 | 319 | |
323 | 320 | $response = new AjaxResponse(); |
324 | 321 | |