Index: trunk/extensions/PageSchemas/PageSchemas.hooks.php |
— | — | @@ -13,7 +13,7 @@ |
14 | 14 | // Initialization |
15 | 15 | public static function register( &$parser ) { |
16 | 16 | // Register the hook with the parser |
17 | | - $parser->setHook( 'PageSchema', array( 'PageSchemasHooks', 'render' ) ); |
| 17 | + $parser->setHook( 'ClassSchema', array( 'PageSchemasHooks', 'render' ) ); |
18 | 18 | // add the CSS |
19 | 19 | global $wgOut, $wgScriptPath; |
20 | 20 | $wgOut->addStyle($wgScriptPath . '/extensions/PageSchemas/PageSchemas.css'); |
— | — | @@ -37,8 +37,8 @@ |
38 | 38 | // recreate the top-level <PageSchema> tag, with whatever |
39 | 39 | // attributes it contained, because that was actually a tag- |
40 | 40 | // 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 | + |
43 | 43 | // if 'type=' was specified, and it wasn't set to one of the |
44 | 44 | // allowed values (currently just 'auto'), don't validate - |
45 | 45 | // just display the XML |