Index: trunk/phase3/includes/AjaxFunctions.php |
— | — | @@ -86,7 +86,7 @@ |
87 | 87 | $term = $wgContLang->ucfirst( $term ); |
88 | 88 | $term_title = Title::newFromText( $term ); |
89 | 89 | |
90 | | - $memckey = wfMemcKey( 'ajaxsearch', md5( $term_title->getFullText() ) ); |
| 90 | + $memckey = $term_title ? wfMemcKey( 'ajaxsearch', md5( $term_title->getFullText() ) ) : wfMemcKey( 'ajaxsearch', md5( $term ) ); |
91 | 91 | $cached = $wgMemc->get($memckey); |
92 | 92 | if( is_array( $cached ) && $cached['version'] == AJAX_SEARCH_VERSION ) { |
93 | 93 | $response = new AjaxResponse( $cached['html'] ); |