summaryrefslogtreecommitdiff
path: root/edit.php
diff options
context:
space:
mode:
authorMax Kremmel <xing@synapse.plus.com>2009-05-17 05:26:29 +0000
committerMax Kremmel <xing@synapse.plus.com>2009-05-17 05:26:29 +0000
commit437e205f8c5bd4bcec28e805765e0b688263f2cc (patch)
treefc23e642e2b276695e7c8d1487cc212f64e0193a /edit.php
parentb3e57d10df4f313c9cc3c4294d828b7fa11a18a9 (diff)
downloadboards-437e205f8c5bd4bcec28e805765e0b688263f2cc.tar.gz
boards-437e205f8c5bd4bcec28e805765e0b688263f2cc.tar.bz2
boards-437e205f8c5bd4bcec28e805765e0b688263f2cc.zip
indent using tabs and use bit_redirect() instead of header()
Diffstat (limited to 'edit.php')
-rw-r--r--edit.php8
1 files changed, 3 insertions, 5 deletions
diff --git a/edit.php b/edit.php
index 5b0299c..4a45da9 100644
--- a/edit.php
+++ b/edit.php
@@ -1,6 +1,6 @@
<?php
/**
- * $Header: /cvsroot/bitweaver/_bit_boards/edit.php,v 1.14 2008/10/20 21:40:09 spiderr Exp $
+ * $Header: /cvsroot/bitweaver/_bit_boards/edit.php,v 1.15 2009/05/17 05:26:29 squareing 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.
@@ -40,8 +40,7 @@ if( isset( $_REQUEST['remove'] ) ) {
} elseif( !$gContent->expunge() ) {
$gBitSmarty->assign_by_ref( 'errors', $deleteComment->mErrors );
} else {
- bit_redirect(BOARDS_PKG_URL.'index.php');
- die;
+ bit_redirect( BOARDS_PKG_URL.'index.php' );
}
} else {
$gBitSystem->fatalPermission( 'p_boards_remove' );
@@ -68,8 +67,7 @@ if( !empty( $_REQUEST["save_bitboard"] ) ) {
// disabled
if( $gContent->store( $storeHash ) ) {
$gContent->storePreference( 'board_sync_list_address', (!empty( $_REQUEST['bitboardconfig']['board_sync_list_address'] ) ? $_REQUEST['bitboardconfig']['board_sync_list_address'] : NULL) );
- header( "Location: ".$gContent->getDisplayUrl() );
- die;
+ bit_redirect( $gContent->getDisplayUrl() );
} else {
$gBitSmarty->assign_by_ref( 'errors', $gContent->mErrors );
}