diff options
| author | Max Kremmel <xing@synapse.plus.com> | 2008-10-18 15:48:07 +0000 |
|---|---|---|
| committer | Max Kremmel <xing@synapse.plus.com> | 2008-10-18 15:48:07 +0000 |
| commit | e09f2dedd9e1e026a96eb73c8bd09ba1e20326d2 (patch) | |
| tree | 24c3eaae00dac9a000f275075e5df4650d573b58 /edit.php | |
| parent | 4e136755a7f4b51f5628256721513e9967d8dfbc (diff) | |
| download | wiki-e09f2dedd9e1e026a96eb73c8bd09ba1e20326d2.tar.gz wiki-e09f2dedd9e1e026a96eb73c8bd09ba1e20326d2.tar.bz2 wiki-e09f2dedd9e1e026a96eb73c8bd09ba1e20326d2.zip | |
only call edit services when we're not previewing. this is makes more sense since services that want to use the same function for preview and edit can do so easily.
Diffstat (limited to 'edit.php')
| -rw-r--r-- | edit.php | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1,6 +1,6 @@ <?php /** - * $Header: /cvsroot/bitweaver/_bit_wiki/edit.php,v 1.53 2008/10/03 20:20:07 wjames5 Exp $ + * $Header: /cvsroot/bitweaver/_bit_wiki/edit.php,v 1.54 2008/10/18 15:48:07 squareing Exp $ * * Copyright( c ) 2004 bitweaver.org * Copyright( c ) 2003 tikwiki.org @@ -8,7 +8,7 @@ * 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 * - * $Id: edit.php,v 1.53 2008/10/03 20:20:07 wjames5 Exp $ + * $Id: edit.php,v 1.54 2008/10/18 15:48:07 squareing Exp $ * @package wiki * @subpackage functions */ @@ -448,10 +448,10 @@ if( isset( $_REQUEST["preview"] ) ) { ( !empty( $_REQUEST['format_guid'] ) ? $_REQUEST['format_guid'] : ( isset( $gContent->mInfo['format_guid'] ) ? $gContent->mInfo['format_guid'] : 'tikiwiki' )) ); $gContent->invokeServices( 'content_preview_function' ); +} else { + $gContent->invokeServices( 'content_edit_function' ); } -$gContent->invokeServices( 'content_edit_function' ); - if( $gContent->isInStructure() ) { $gBitSmarty->assign( 'showstructs', $gContent->getStructures() ); } |
