diff --git a/CodeMirror.hooks.php b/CodeMirror.hooks.php index 4dc334aa..f4254999 100644 --- a/CodeMirror.hooks.php +++ b/CodeMirror.hooks.php @@ -89,6 +89,7 @@ class CodeMirrorHooks { * @return array */ public static function getGlobalVariables( IContextSource $context ) { + /** @var Parser $wgParser */ global $wgParser; // if we already created these variable array, return it