r95308 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r95307‎ | r95308 | r95309 >
Date:14:14, 23 August 2011
Author:ankitgarg833
Status:deferred
Tags:
Comment:
replacing <CreateTite> with <CreateTitle>.
Modified paths:
  • /trunk/extensions/SemanticForms/includes/SF_Utils.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticForms/includes/SF_Utils.php
@@ -204,7 +204,7 @@
205205 }else if(substr($var,0,21) == 'sf_page_name_formula_'){
206206 $form_xml_text .= '<PageNameFormula>'.$val.'</PageNameFormula>';
207207 }else if(substr($var,0,16) == 'sf_create_title_'){
208 - $form_xml_text .= '<CreateTite>'.$val.'</CreateTite>';
 208+ $form_xml_text .= '<CreateTitle>'.$val.'</CreateTitle>';
209209 }else if(substr($var,0,14) == 'sf_edit_title_'){
210210 $form_xml_text .= '<EditTitle>'.$val.'</EditTitle>';
211211 $form_xml_text .= '</semanticforms_Form>';
@@ -237,15 +237,7 @@
238238 $text_extensions['sf_form'] = $form_xml_text;
239239 return true;
240240 }
241 - public static function getFilledSchemaHtmlTextForPS( $pageSchemaObj, &$text_extensions ){
242 - $pageXml = $pageSchemaObj->pageXml;
243 - foreach ( $pageXml->children() as $tag => $template_xml ) {
244 - if ( $tag == 'Form' ){
245 -
246 - }
247 - }
248 - return true;
249 - }
 241+
250242 public static function getFilledHtmlTextForPS( $pageSchemaObj, &$text_extensions ){
251243 $template_fields = array();
252244 $html_text = "";
@@ -259,7 +251,7 @@
260252 $form_html_text .= '<fieldset style="background: #CF9;"><legend>Form</legend>
261253 <p> Name: <input size="15" name="sf_form_name_starter" value= "'.$form_array['name'].'" ></p>
262254 <p> Page name formula: <input size="20" name="sf_page_name_formula_starter" value="'.$form_array['PageNameFormula'].'" ></p>
263 - <p> Title of form for new pages: <input size="25" name="sf_create_title_starter" value="'.$form_array['CreateTite'].'" ></p>
 255+ <p> Title of form for new pages: <input size="25" name="sf_create_title_starter" value="'.$form_array['CreateTitle'].'" ></p>
264256 <p> Title of form for existing pages: <input size="25" name="sf_edit_title_starter" value="'.$form_array['EditTitle'].'" ></p>
265257 </fieldset>';
266258 foreach ( $template_all as $template ) {
@@ -372,7 +364,7 @@
373365 }
374366 $form = SFForm::create( $form_name, $form_templates );
375367 $form->setPageNameFormula( $form_array['PageNameFormula'] );
376 - $form->setCreateTitle( $form_array['CreateTite'] );
 368+ $form->setCreateTitle( $form_array['CreateTitle'] );
377369 $form->setEditTitle( $form_array['EditTitle'] );
378370 $title = Title::makeTitleSafe( SF_NS_FORM, $form->getFormName() );
379371 $key_title = PageSchemas::titleString( $title );