From a1789ddde42033f1b05cc4929491214ee6e79383 Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Thu, 17 Dec 2015 09:15:42 +0100 Subject: Update to MediaWiki 1.26.0 --- .../ResourceLoaderGeSHiVisualEditorModule.php | 58 ++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 extensions/SyntaxHighlight_GeSHi/ResourceLoaderGeSHiVisualEditorModule.php (limited to 'extensions/SyntaxHighlight_GeSHi/ResourceLoaderGeSHiVisualEditorModule.php') diff --git a/extensions/SyntaxHighlight_GeSHi/ResourceLoaderGeSHiVisualEditorModule.php b/extensions/SyntaxHighlight_GeSHi/ResourceLoaderGeSHiVisualEditorModule.php new file mode 100644 index 00000000..123fcd13 --- /dev/null +++ b/extensions/SyntaxHighlight_GeSHi/ResourceLoaderGeSHiVisualEditorModule.php @@ -0,0 +1,58 @@ +getLanguages() + ), + ResourceLoader::inDebugMode() + ); + } + + /** + * Don't break debug mode by only showing file URLs + */ + public function getScriptURLsForDebug( ResourceLoaderContext $context ) { + return ResourceLoaderModule::getScriptURLsForDebug( $context ); + } + + /** + * Get a full list of available langauges + * @return array + */ + private function getLanguages() { + $lexers = require __DIR__ . '/SyntaxHighlight_GeSHi.lexers.php'; + return array_merge( $lexers, array_keys( GeSHi::$compatibleLexers ) ); + } + + public function enableModuleContentVersion() { + return true; + } +} -- cgit v1.2.2