From c264ffd7a02c6fc51d56cee76fab0a1ccfb13ae1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Carlos=20Ra=C3=B1a?= Date: Mon, 25 May 2009 23:52:40 +0200 Subject: [PATCH] [svn r20981] fix when adding pages two erroneous messages if we press submit button --- main/wiki/index.php | 21 +++------------------ 1 file changed, 3 insertions(+), 18 deletions(-) diff --git a/main/wiki/index.php b/main/wiki/index.php index 46d6567aa3..d78ce9af8d 100644 --- a/main/wiki/index.php +++ b/main/wiki/index.php @@ -1141,7 +1141,7 @@ if ($_GET['action']=='addnew') /////////////////////// show home page /////////////////////// -if (!$_GET['action'] OR $_GET['action']=='show' AND !$_POST['SaveWikiNew']) +if (!$_GET['action'] OR $_GET['action']=='show' AND !isset($_POST['SaveWikiNew'])) { display_wiki_entry(); } @@ -1149,7 +1149,7 @@ if (!$_GET['action'] OR $_GET['action']=='show' AND !$_POST['SaveWikiNew']) /////////////////////// show current page /////////////////////// -if ($_GET['action']=='showpage' AND !$_POST['SaveWikiNew']) +if ($_GET['action']=='showpage' AND !isset($_POST['SaveWikiNew'])) { display_wiki_entry(); } @@ -2398,21 +2398,6 @@ function save_new_wiki() { **/ function display_new_wiki_form() { - - ?> - - '; echo '
'; echo '* '.get_lang(Title).': '; @@ -2452,7 +2437,7 @@ function display_new_wiki_form() %'; echo '

'; echo ''; //for save icon - echo ''; //for button icon + echo '';//for button icon echo '
'; echo ''; }