http://www.mediawiki.org/wiki/Special:Code/MediaWiki/90712

Revision: 90712
Author:   ankitgarg833
Date:     2011-06-24 14:31:40 +0000 (Fri, 24 Jun 2011)
Log Message:
-----------
adding code for inserting xml into db.

Modified Paths:
--------------
    trunk/extensions/PageSchemas/PageSchemas.hooks.php

Modified: trunk/extensions/PageSchemas/PageSchemas.hooks.php
===================================================================
--- trunk/extensions/PageSchemas/PageSchemas.hooks.php  2011-06-24 14:30:35 UTC 
(rev 90711)
+++ trunk/extensions/PageSchemas/PageSchemas.hooks.php  2011-06-24 14:31:40 UTC 
(rev 90712)
@@ -13,7 +13,7 @@
        // Initialization
        public static function register( &$parser ) {
                // Register the hook with the parser
-               $parser->setHook( 'PageSchema', array( 'PageSchemasHooks', 
'render' ) );
+               $parser->setHook( 'ClassSchema', array( 'PageSchemasHooks', 
'render' ) );
                // add the CSS
                global $wgOut, $wgScriptPath;
                $wgOut->addStyle($wgScriptPath . 
'/extensions/PageSchemas/PageSchemas.css');
@@ -37,8 +37,8 @@
                // recreate the top-level <PageSchema> tag, with whatever
                // attributes it contained, because that was actually a tag-
                // function call, as opposed to a real XML tag
-               $input = Xml::tags('PageSchema', $args, $input);
-
+               $input = Xml::tags('ClassSchema', $args, $input);
+               
                // if 'type=' was specified, and it wasn't set to one of the
                // allowed values (currently just 'auto'),  don't validate -
                // just display the XML


_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to