Index: trunk/extensions/PageSchemas/PageSchemas.classes.php |
— | — | @@ -108,7 +108,7 @@ |
109 | 109 | /* Stores the templte objects */ |
110 | 110 | public $PSTemplates = array(); |
111 | 111 | |
112 | | - function __construct ( $category_name ) { |
| 112 | + function __construct ( $category_name ) { |
113 | 113 | $this->categoryName = $category_name; |
114 | 114 | $title = Title::newFromText( $category_name, NS_CATEGORY ); |
115 | 115 | $this->pageId = $title->getArticleID(); |
— | — | @@ -133,6 +133,7 @@ |
134 | 134 | $this->pageName = (string)$pageXml->attributes()->name; |
135 | 135 | /* index for template objects */ |
136 | 136 | $i = 0 ; |
| 137 | + $j = 1; |
137 | 138 | foreach ( $pageXml->children() as $tag => $child ) { |
138 | 139 | if ( $tag == 'Template' ) { |
139 | 140 | $templateObj = new PSTemplate($child); |