summaryrefslogtreecommitdiff
path: root/edit.php
diff options
context:
space:
mode:
authorMax Kremmel <xing@synapse.plus.com>2008-10-18 15:48:07 +0000
committerMax Kremmel <xing@synapse.plus.com>2008-10-18 15:48:07 +0000
commite09f2dedd9e1e026a96eb73c8bd09ba1e20326d2 (patch)
tree24c3eaae00dac9a000f275075e5df4650d573b58 /edit.php
parent4e136755a7f4b51f5628256721513e9967d8dfbc (diff)
downloadwiki-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.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/edit.php b/edit.php
index d3b858d..1ad7ea8 100644
--- a/edit.php
+++ b/edit.php
@@ -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() );
}