r95768 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r95767‎ | r95768 | r95769 >
Date:12:38, 30 August 2011
Author:catrope
Status:ok
Tags:
Comment:
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) (history)

Diff [purge]

Index: branches/RL2/extensions/Gadgets/GadgetHooks.php
@@ -162,7 +162,7 @@
163163 }
164164
165165 public static function titleIsCssOrJsPage( $title, &$result ) {
166 - if ( $title->getNamespace() == NS_GADGET ) {
 166+ if ( $title->getNamespace() == NS_GADGET || $title->getNamespace() == NS_GADGET_DEFINITION ) {
167167 $result = true;
168168 }
169169 return true;

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r95764RL2: Create the Gadget definition: namespace, and restrict editing, deleting ...catrope12:27, 30 August 2011

Status & tagging log