r94059 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r94058‎ | r94059 | r94060 >
Date:14:21, 8 August 2011
Author:ankitgarg833
Status:deferred
Tags:
Comment:
minor fixes.
Modified paths:
  • /trunk/extensions/PageSchemas/specials/PS_EditSchema.php (modified) (history)

Diff [purge]

Index: trunk/extensions/PageSchemas/specials/PS_EditSchema.php
@@ -49,6 +49,7 @@
5050 function updateFieldNum(field_num){
5151 fieldNum = field_num;
5252 }
 53+
5354 function addjQueryToCheckbox(){
5455 jQuery('.isListCheckbox').click(function() {
5556 if (jQuery(this).is(":checked"))
@@ -98,7 +99,7 @@
99100 $text .= '<p>Name of schema: <input type="text" name="s_name"/> </p> ';
100101 $text .= '<p>Additional XML:
101102 <textarea rows=4 style="width: 100%" name="ps_add_xml"></textarea>
102 - </p> ';
 103+ </p> ';
103104 $text .= '<div id="templatesList">';
104105 $text .= '<div class="templateBox" >';
105106 $text .= '<fieldset style="background: #ddd;"><legend>Template</legend> ';
@@ -245,6 +246,8 @@
246247 $categoryTitle = Title::newFromText( $category, NS_CATEGORY );
247248 $categoryArticle = new Article( $categoryTitle );
248249 $pageText = $categoryArticle->getContent();
 250+ $replaced_text = preg_replace('/<PageSchema>*<\/PageSchema>/', $Xmltext, $pageText );
 251+ wfDebugLog( 'myextension', 'Xmltext: ' . print_r( $replaced_text, true ) );
249252 $jobs = array();
250253 if( $wgRequest->getText('is_edit')=='true' ){
251254 //Do some preg-replace magic
@@ -324,6 +327,7 @@
325328 }
326329 }
327330 $text_4 .= '<div id="fieldsList_'.$template_num.'">';
 331+ $list_values = false;
328332 foreach ($template_xml->children() as $field_xml) {
329333 if ( $field_xml->getName() == "Field" ){
330334 $fieldName = (string)$field_xml->attributes()->name;

Status & tagging log