diff options
| author | wjames5 <will@tekimaki.com> | 2007-04-07 17:50:27 +0000 |
|---|---|---|
| committer | wjames5 <will@tekimaki.com> | 2007-04-07 17:50:27 +0000 |
| commit | ed5f3de75c0d86d95abcadc82463fe341214fab7 (patch) | |
| tree | 3ee2b228218d8e224a315a6c2aeffdd90043b92e /post.php | |
| parent | 0b861d783005e7c17eb8cf2f64fc033dff5b95d5 (diff) | |
| download | blogs-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.php | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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 ); |
