r41502 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r41501‎ | r41502 | r41503 >
Date:15:54, 1 October 2008
Author:yaron
Status:old
Tags:
Comment:
Blanked page during form redirect
Modified paths:
  • /trunk/extensions/SemanticForms/specials/SF_CreateCategory.php (modified) (history)
  • /trunk/extensions/SemanticForms/specials/SF_CreateForm.php (modified) (history)
  • /trunk/extensions/SemanticForms/specials/SF_CreateProperty.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticForms/specials/SF_CreateCategory.php
@@ -69,6 +69,7 @@
7070 $category_name_error_str = wfMsg('sf_blank_error');
7171 } else {
7272 # redirect to wiki interface
 73+ $wgOut->setArticleBodyOnly(true);
7374 $namespace = NS_CATEGORY;
7475 $title = Title::newFromText($category_name, $namespace);
7576 $full_text = createCategoryText($default_form, $category_name, $parent_category);
Index: trunk/extensions/SemanticForms/specials/SF_CreateForm.php
@@ -125,9 +125,10 @@
126126 if ($form->form_name == "") {
127127 $form_name_error_str = wfMsg('sf_blank_error');
128128 } else {
 129+ # redirect to wiki interface
 130+ $wgOut->setArticleBodyOnly(true);
129131 $title = Title::newFromText($form->form_name, SF_NS_FORM);
130132 $full_text = str_replace('"', '"', $form->createMarkup());
131 - # redirect to wiki interface
132133 $text = sffPrintRedirectForm($title, $full_text, "", $save_page, $preview_page, false, false, false, null, null);
133134 $wgOut->addHTML($text);
134135 return;
Index: trunk/extensions/SemanticForms/specials/SF_CreateProperty.php
@@ -77,6 +77,7 @@
7878 $property_name_error_str = wfMsg('sf_blank_error');
7979 } else {
8080 # redirect to wiki interface
 81+ $wgOut->setArticleBodyOnly(true);
8182 $namespace = SMW_NS_PROPERTY;
8283 $title = Title::newFromText($property_name, $namespace);
8384 $full_text = createPropertyText($property_type, $allowed_values);

Status & tagging log