summaryrefslogtreecommitdiff
path: root/post.php
diff options
context:
space:
mode:
authorwjames5 <will@tekimaki.com>2007-04-07 17:50:27 +0000
committerwjames5 <will@tekimaki.com>2007-04-07 17:50:27 +0000
commited5f3de75c0d86d95abcadc82463fe341214fab7 (patch)
tree3ee2b228218d8e224a315a6c2aeffdd90043b92e /post.php
parent0b861d783005e7c17eb8cf2f64fc033dff5b95d5 (diff)
downloadblogs-ed5f3de75c0d86d95abcadc82463fe341214fab7.tar.gz
blogs-ed5f3de75c0d86d95abcadc82463fe341214fab7.tar.bz2
blogs-ed5f3de75c0d86d95abcadc82463fe341214fab7.zip
persist format_guid selection on preview
Diffstat (limited to 'post.php')
-rw-r--r--post.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/post.php b/post.php
index 3d7b2db..44e678f 100644
--- a/post.php
+++ b/post.php
@@ -1,6 +1,6 @@
<?php
/**
- * @version $Header: /cvsroot/bitweaver/_bit_blogs/post.php,v 1.36 2007/04/07 17:30:43 wjames5 Exp $
+ * @version $Header: /cvsroot/bitweaver/_bit_blogs/post.php,v 1.37 2007/04/07 17:50:27 wjames5 Exp $
* @package blogs
* @subpackage functions
@@ -57,6 +57,10 @@ if (isset($_REQUEST['remove_image'])) {
$gContent->expungeAttachment( $_REQUEST['remove_image'] );
}
+if( isset( $_REQUEST['format_guid'] ) && !isset( $gContent->mInfo['format_guid'] ) ) {
+ $formInfo['format_guid'] = $gContent->mInfo['format_guid'] = $_REQUEST['format_guid'];
+}
+
if (isset($_REQUEST["preview"])) {
$post = $gContent->preparePreview( $_REQUEST );
$gBitSmarty->assign( 'preview', TRUE );