Index: trunk/extensions/CategoryTree/CategoryTreeFunctions.php |
— | — | @@ -298,7 +298,7 @@ |
299 | 299 | * load CategoryTreeFunctions.php on demand. |
300 | 300 | */ |
301 | 301 | function ajax( $category, $depth = 1 ) { |
302 | | - global $wgDBname, $wgUser; |
| 302 | + global $wgUser; |
303 | 303 | $title = self::makeTitle( $category ); |
304 | 304 | |
305 | 305 | if ( ! $title ) { |
— | — | @@ -317,7 +317,7 @@ |
318 | 318 | 'page_title' => $dbkey, |
319 | 319 | ), __METHOD__ ); |
320 | 320 | |
321 | | - $mckey = "$wgDBname:categorytree(" . $this->getOptionsAsCacheKey( $depth ) . "):$dbkey:$configkey"; |
| 321 | + $mckey = wfMemcKey( "categorytree(" . $this->getOptionsAsCacheKey( $depth ) . ")", $dbkey, $configkey ); |
322 | 322 | |
323 | 323 | $response = new AjaxResponse(); |
324 | 324 | |