Browse Source

this should fix preview without javascript...yeah, I know... :P

Signed-off-by: emanuele <[email protected]>
emanuele 11 years ago
parent
commit
8314cf2ef6
2 changed files with 4 additions and 2 deletions
  1. 3 1
      .gitignore
  2. 1 1
      Sources/Post.php

+ 3 - 1
.gitignore

@@ -44,4 +44,6 @@ Icon?
 Thumbs.db
 *.lnk
 /nbproject/private/
-/nbproject/
+/nbproject/
+.directory
+

+ 1 - 1
Sources/Post.php

@@ -455,7 +455,7 @@ function Post($post_errors = array())
 		}
 
 		// Only show the preview stuff if they hit Preview.
-		if (($really_previewing == true || isset($_REQUEST['xml'])) && !isset($_POST['id_draft']))
+		if (($really_previewing == true || isset($_REQUEST['xml'])) && !isset($_REQUEST['save_draft']))
 		{
 			// Set up the preview message and subject and censor them...
 			$context['preview_message'] = $form_message;