r90715 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r90714‎ | r90715 | r90716 >
Date:15:21, 24 June 2011
Author:ankitgarg833
Status:deferred
Tags:
Comment:
Modified paths:
  • /trunk/extensions/PageSchemas/PageSchemas.hooks.php (modified) (history)

Diff [purge]

Index: trunk/extensions/PageSchemas/PageSchemas.hooks.php
@@ -13,7 +13,7 @@
1414 // Initialization
1515 public static function register( &$parser ) {
1616 // Register the hook with the parser
17 - $parser->setHook( 'ClassSchema', array( 'PageSchemasHooks', 'render' ) );
 17+ $parser->setHook( 'PageSchema', array( 'PageSchemasHooks', 'render' ) );
1818 // add the CSS
1919 global $wgOut, $wgScriptPath;
2020 $wgOut->addStyle($wgScriptPath . '/extensions/PageSchemas/PageSchemas.css');
@@ -37,7 +37,7 @@
3838 // recreate the top-level <PageSchema> tag, with whatever
3939 // attributes it contained, because that was actually a tag-
4040 // function call, as opposed to a real XML tag
41 - $input = Xml::tags('ClassSchema', $args, $input);
 41+ $input = Xml::tags('PageSchema', $args, $input);
4242
4343 // if 'type=' was specified, and it wasn't set to one of the
4444 // allowed values (currently just 'auto'), don't validate -

Status & tagging log