r94170 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r94169‎ | r94170 | r94171 >
Date:17:12, 10 August 2011
Author:ankitgarg833
Status:deferred
Tags:
Comment:
minor fix.
Modified paths:
  • /trunk/extensions/PageSchemas/specials/PS_EditSchema.php (modified) (history)

Diff [purge]

Index: trunk/extensions/PageSchemas/specials/PS_EditSchema.php
@@ -191,9 +191,15 @@
192192 <p><input type="checkbox" name="f_is_list_starter" class="isListCheckbox" /> This field can hold a list of values
193193 &#160;&#160;</p>
194194 <div class="delimiterInput" style="display: none" ><p>Delimiter for values (default is ","): <input type="text" name="f_delimiter_starter" /> </p></div>';
195 - foreach( $text_extensions as $text_ex ){
196 - $starter_text .= $text_ex ;
 195+ if($text_extensions['smw'] != null){
 196+ $starter_text .= $text_extensions['smw'];
197197 }
 198+ if($text_extensions['sf'] != null){
 199+ $starter_text .= $text_extensions['sf'];
 200+ }
 201+ if($text_extensions['sd'] != null){
 202+ $starter_text .= $text_extensions['sd'];
 203+ }
198204 $starter_text .= '<p>Additional XML:
199205 <textarea rows=4 style="width: 100%" name="f_add_xml_starter"></textarea>
200206 </p>
@@ -282,7 +288,7 @@
283289 $title = Title::newFromText( $category, NS_CATEGORY );
284290 $params = array();
285291 $params['user_id'] = $wgUser->getId();
286 - $params['page_text'] = $pageText.$Xmltext;
 292+ $params['page_text'] = $Xmltext;
287293 $jobs[] = new PSCreatePageJob( $title, $params );
288294 Job::batchInsert( $jobs );
289295 }

Status & tagging log