r51078 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r51077‎ | r51078 | r51079 >
Date:16:38, 27 May 2009
Author:yaron
Status:deferred
Tags:
Comment:
Added more initializing of variables
Modified paths:
  • /trunk/extensions/SemanticForms/specials/SF_RunQuery.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticForms/specials/SF_RunQuery.php
@@ -62,6 +62,7 @@
6363 $edit_content = $content;
6464 $is_text_source = true;
6565 } else {
 66+ $edit_content = null;
6667 $is_text_source = true;
6768 }
6869 list ($form_text, $javascript_text, $data_text, $form_page_title) =
@@ -72,6 +73,7 @@
7374 $new_url = $wgTitle->getLocalURL() . "/$form_name";
7475 $text = SFUtils::printRedirectForm($new_url, $data_text, $wgRequest->getVal('wpSummary'), $save_page, $preview_page, $diff_page, $wgRequest->getCheck('wpMinoredit'), $wgRequest->getCheck('wpWatchthis'), $wgRequest->getVal('wpStarttime'), $wgRequest->getVal('wpEdittime'));
7576 } else {
 77+ $text = "";
7678 // override the default title for this page if
7779 // a title was specified in the form
7880 if ($form_page_title != NULL) {

Status & tagging log