diff options
| author | wjames5 <will@tekimaki.com> | 2008-07-31 23:31:38 +0000 |
|---|---|---|
| committer | wjames5 <will@tekimaki.com> | 2008-07-31 23:31:38 +0000 |
| commit | c5fd4b4575eb950396e601a24ee8076e79b1b917 (patch) | |
| tree | 2a75db222f17f39278fbf3a12d04b4d0c9673369 /edit.php | |
| parent | cfa4250bd8920a9cc00f6fe6ad9a6d66ba977e23 (diff) | |
| download | boards-c5fd4b4575eb950396e601a24ee8076e79b1b917.tar.gz boards-c5fd4b4575eb950396e601a24ee8076e79b1b917.tar.bz2 boards-c5fd4b4575eb950396e601a24ee8076e79b1b917.zip | |
tidy up with a preview method
Diffstat (limited to 'edit.php')
| -rw-r--r-- | edit.php | 22 |
1 files changed, 3 insertions, 19 deletions
@@ -1,6 +1,6 @@ <?php /** - * $Header: /cvsroot/bitweaver/_bit_boards/edit.php,v 1.10 2008/06/25 22:21:08 spiderr Exp $ + * $Header: /cvsroot/bitweaver/_bit_boards/edit.php,v 1.11 2008/07/31 23:31:38 wjames5 Exp $ * Copyright (c) 2004 bitweaver Messageboards * All Rights Reserved. See copyright.txt for details and a complete list of authors. * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details. @@ -29,27 +29,11 @@ if( $gContent->isValid() ) { $gBitSystem->verifyPermission( 'p_boards_edit' ); } -// Editing page needs general ticket verification -if( isset( $_REQUEST['bitboard']["title"] ) ) { - $gContent->mInfo["title"] = $_REQUEST['bitboard']["title"]; -} - -if( isset( $_REQUEST['bitboard']["description"] ) ) { - $gContent->mInfo["description"] = $_REQUEST['bitboard']["description"]; -} - -if( isset( $_REQUEST["format_guid"] ) ) { - $gContent->mInfo['format_guid'] = $_REQUEST['bitboard']['format_guid'] = $_REQUEST["format_guid"]; -} - -if( isset( $_REQUEST['bitboard']["edit"] ) ) { - $gContent->mInfo["data"] = $_REQUEST['bitboard']["edit"]; - $gContent->mInfo['parsed_data'] = $gContent->parseData(); -} - // If we are in preview mode then preview it! if( isset( $_REQUEST["preview"] ) ) { $gBitSmarty->assign('preview', 'y'); + $previewHash = array_merge( $_REQUEST, $_REQUEST['bitboard'] ); + $gContent->preparePreview( $previewHash ); $gContent->invokeServices( 'content_preview_function' ); } else { $gContent->invokeServices( 'content_edit_function' ); |
