Permalink
Browse files

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

Signed-off-by: emanuele <emanuele45@gmail.com>
  • Loading branch information...
1 parent a51f261 commit 8314cf2ef69e1487e375c01aae9ef86e0fd7338a @emanuele45 emanuele45 committed Jan 19, 2013
Showing with 4 additions and 2 deletions.
  1. +3 −1 .gitignore
  2. +1 −1 Sources/Post.php
View
@@ -44,4 +44,6 @@ Icon?
Thumbs.db
*.lnk
/nbproject/private/
-/nbproject/
+/nbproject/
+.directory
+
View
@@ -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;

0 comments on commit 8314cf2

Please sign in to comment.