Browse Source

! If previewing, do not create the post

Signed-off-by: John Rayes <[email protected]>
John Rayes 12 years ago
parent
commit
2bda1fecd9
1 changed files with 4 additions and 0 deletions
  1. 4 0
      Sources/Post.php

+ 4 - 0
Sources/Post.php

@@ -1194,6 +1194,10 @@ function Post2()
 		$_POST['message'] = $_REQUEST['message'];
 	}
 
+	// Previewing? Go back to start.
+	if (isset($_REQUEST['preview']))
+		return Post();
+
 	// Prevent double submission of this form.
 	checkSubmitOnce('check');