r24489 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r24488‎ | r24489 | r24490 >
Date:13:08, 31 July 2007
Author:yaron
Status:old
Tags:
Comment:
Fixed 'preload' query value bug
Modified paths:
  • /trunk/extensions/SemanticForms/specials/SF_AddData.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticForms/specials/SF_AddData.php
@@ -56,7 +56,7 @@
5757 $diff_page = $wgRequest->getCheck('wpDiff');
5858 $form_submitted = ($save_page || $preview_page || $diff_page);
5959 // get 'preload' query value, if it exists
60 - if ($wgRequest->getCheck('preload')) {
 60+ if (!$form_submitted && $wgRequest->getCheck('preload')) {
6161 $page_is_source = true;
6262 $page_contents = SFFormPrinter::getPreloadedText($wgRequest->getVal('preload'));
6363 } else {

Status & tagging log