followup 101492 — make it actually work.
authorMark A. Hershberger <mah@users.mediawiki.org>
Tue, 1 Nov 2011 16:29:49 +0000 (16:29 +0000)
committerMark A. Hershberger <mah@users.mediawiki.org>
Tue, 1 Nov 2011 16:29:49 +0000 (16:29 +0000)
includes/LocalisationCache.php

index 098cace..f5ac5c5 100644 (file)
@@ -851,7 +851,9 @@ class LCStore_Accel implements LCStore {
 
        public function get( $code, $key ) {
                $k = wfMemcKey( 'l10n', $code, 'k', $key );
-               return $this->cache->get( $k );
+               $r = $this->cache->get( $k );
+               if ( $r === false ) return null;
+               return $r;
        }
 
        public function startWrite( $code ) {