*/
function wfUrlProtocols() {
global $wgUrlProtocols;
-
- // This function is called a lot, cache its return value
- // TODO: Cache this in memcached instead?
+
static $retval = null;
if ( !is_null( $retval ) )
return $retval;
} else {
$retval = $wgUrlProtocols;
}
-
return $retval;
}
$vars = array(
'skin' => $skinName,
'stylepath' => $wgStylePath,
- 'urlprotocols' => wfUrlProtocols(),
+ 'wgUrlProtocols' => wfUrlProtocols(),
'wgArticlePath' => $wgArticlePath,
'wgScriptPath' => $wgScriptPath,
'wgScriptExtension' => $wgScriptExtension,