r95158 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r95157‎ | r95158 | r95159 >
Date:17:20, 21 August 2011
Author:ankitgarg833
Status:deferred
Tags:
Comment:
changing few XML tags
Modified paths:
  • /trunk/extensions/PageSchemas/PageSchemas.classes.php (modified) (history)

Diff [purge]

Index: trunk/extensions/PageSchemas/PageSchemas.classes.php
@@ -98,11 +98,11 @@
9999 <?xml version="1.0" encoding="utf-8"?>
100100 <!DOCTYPE PageSchema [
101101 <!ELEMENT PageSchema (Template*)>
102 -<!ELEMENT PageSchema (Form*)>
 102+<!ELEMENT PageSchema (semanticforms_Form*)>
103103 <!ATTLIST PageSchema name CDATA #REQUIRED>
104104 <!ELEMENT Template (Field*)>
105105 <!ATTLIST Template name CDATA #REQUIRED>
106 -<!ATTLIST Form name CDATA #REQUIRED>
 106+<!ATTLIST semanticforms_Form name CDATA #REQUIRED>
107107 <!ATTLIST Field name CDATA #REQUIRED>
108108 ]>
109109
@@ -146,7 +146,7 @@
147147 $name = $class_schema_xml->attributes()->name;
148148 $text .= self::tableRowHTML('paramGroup', 'PageSchema', $name);
149149 foreach ( $class_schema_xml->children() as $tag => $child ) {
150 - if ( $tag == 'Form' ){
 150+ if ( $tag == 'semanticforms_Form' ){
151151 $text .= self::parseFormElem($child);
152152 }
153153 else if ($tag == 'Template') {
@@ -264,7 +264,7 @@
265265 }
266266 /*return an array of PSTemplate Objects */
267267 function getFormArray () {
268 - $obj = $this->getObject('Form');
 268+ $obj = $this->getObject('semanticforms_Form');
269269 return $obj['sf'];
270270 }
271271 /*return an array of PSTemplate Objects */

Status & tagging log