mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Gadgets
synced 2024-12-01 02:16:11 +00:00
* Fix cache check
This commit is contained in:
parent
fb6bdb9e6e
commit
61b48c5bf5
|
@ -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 ) ) {
|
||||
|
|
Loading…
Reference in a new issue