http://www.mediawiki.org/wiki/Special:Code/MediaWiki/95768
Revision: 95768
Author: catrope
Date: 2011-08-30 12:38:58 +0000 (Tue, 30 Aug 2011)
Log Message:
-----------
Followup r95764, also mark Gadget definition: pages as JS/CSS pages for syntax
highlighting and such (they contain JSON)
Modified Paths:
--------------
branches/RL2/extensions/Gadgets/GadgetHooks.php
Modified: branches/RL2/extensions/Gadgets/GadgetHooks.php
===================================================================
--- branches/RL2/extensions/Gadgets/GadgetHooks.php 2011-08-30 12:29:52 UTC
(rev 95767)
+++ branches/RL2/extensions/Gadgets/GadgetHooks.php 2011-08-30 12:38:58 UTC
(rev 95768)
@@ -162,7 +162,7 @@
}
public static function titleIsCssOrJsPage( $title, &$result ) {
- if ( $title->getNamespace() == NS_GADGET ) {
+ if ( $title->getNamespace() == NS_GADGET ||
$title->getNamespace() == NS_GADGET_DEFINITION ) {
$result = true;
}
return true;
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs