r90712 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r90711‎ | r90712 | r90713 >
Date:14:31, 24 June 2011
Author:ankitgarg833
Status:deferred
Tags:
Comment:
adding code for inserting xml into db.
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( 'PageSchema', array( 'PageSchemasHooks', 'render' ) );
 17+ $parser->setHook( 'ClassSchema', array( 'PageSchemasHooks', 'render' ) );
1818 // add the CSS
1919 global $wgOut, $wgScriptPath;
2020 $wgOut->addStyle($wgScriptPath . '/extensions/PageSchemas/PageSchemas.css');
@@ -37,8 +37,8 @@
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('PageSchema', $args, $input);
42 -
 41+ $input = Xml::tags('ClassSchema', $args, $input);
 42+
4343 // if 'type=' was specified, and it wasn't set to one of the
4444 // allowed values (currently just 'auto'), don't validate -
4545 // just display the XML

Status & tagging log