User:Dto/CommonJSext

 'Common.js',   'author' => 'Dan Li',   'description' => 'includes MediaWiki:Common.js in pages' );

function addCommonJSscript { global $wgOut, $wgJsMimeType, $wgSquidMaxage; $t = Title::makeTitle(NS_MEDIAWIKI, 'Common.js'); $wgOut->addScript('escapeLocalURL("action=raw&ctype={$wgJsMimeType}&smaxage=$wgSquidMaxage") . '"> '); } ?>