* Fix cache check

This commit is contained in:
Niklas Laxström 2008-03-22 20:52:41 +00:00
parent fb6bdb9e6e
commit 61b48c5bf5

View file

@ -77,7 +77,7 @@ function wfLoadGadgetsStructured( $forceNewText = NULL ) {
if ( $forceNewText == NULL ) {
//cached?
$gadgets = $wgMemc->get( $key );
if ( $gadgets !== NULL ) return $gadgets;
if ( is_string($gadgets) ) return $gadgets;
$g = wfMsgForContentNoTrans( "gadgets-definition" );
if ( wfEmptyMsg( "gadgets-definition", $g ) ) {