diff --git a/CodeEditor.hooks.php b/CodeEditor.hooks.php index 42697d76..1363af73 100644 --- a/CodeEditor.hooks.php +++ b/CodeEditor.hooks.php @@ -29,10 +29,6 @@ class CodeEditorHooks { public static function onMakeGlobalVariablesScript( &$vars, $output ) { global $wgTitle; - // Safeguard - //if( !$wgTitle ) - // return true; - $lang = self::getPageLanguage( $wgTitle ); if( $lang ) { $vars['wgCodeEditorCurrentLanguage'] = $lang;