diff options
| author | Christian Fowler <spider@viovio.com> | 2006-11-18 16:16:37 +0000 |
|---|---|---|
| committer | Christian Fowler <spider@viovio.com> | 2006-11-18 16:16:37 +0000 |
| commit | d2ec043d9b327c79a75cc0dfb0782616b748ff04 (patch) | |
| tree | d79abaefc49b6810948bf7a41c23f97d63645c1b /list_blogs.php | |
| parent | ce1f38ae5ffcbab74fe961b0848f2035b000d537 (diff) | |
| download | blogs-d2ec043d9b327c79a75cc0dfb0782616b748ff04.tar.gz blogs-d2ec043d9b327c79a75cc0dfb0782616b748ff04.tar.bz2 blogs-d2ec043d9b327c79a75cc0dfb0782616b748ff04.zip | |
fix blog storing
Diffstat (limited to 'list_blogs.php')
| -rw-r--r-- | list_blogs.php | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/list_blogs.php b/list_blogs.php index 851a779..d9295bc 100644 --- a/list_blogs.php +++ b/list_blogs.php @@ -1,6 +1,6 @@ <?php /** - * @version $Header: /cvsroot/bitweaver/_bit_blogs/list_blogs.php,v 1.9 2006/10/11 06:05:12 spiderr Exp $ + * @version $Header: /cvsroot/bitweaver/_bit_blogs/list_blogs.php,v 1.10 2006/11/18 16:16:37 spiderr Exp $ * @package blogs * @subpackage functions */ @@ -22,15 +22,16 @@ $gBitSystem->verifyPermission( 'p_blogs_view' ); if( $gBlog->isValid() && isset($_REQUEST["remove"])) { // Check if has edit perm of this blog - $gBlog->hasUserPermission( 'p_blog_edit', TRUE ); - if( !empty( $_REQUEST['cancel'] ) ) { - // user cancelled - just continue on, doing nothing - } elseif( empty( $_REQUEST['confirm'] ) ) { - $formHash['remove'] = $_REQUEST["remove"]; - $formHash['blog_id'] = $gBlog->mBlogId; - $gBitSystem->confirmDialog( $formHash, array( 'warning' => 'Are you sure you want to delete the blog '.$gBlog->getTitle().'?', 'error' => 'This cannot be undone!' ) ); - } else { - $gBlog->expunge(); + if( $gBlog->hasUserPermission( 'p_blog_edit', TRUE ) ) { + if( !empty( $_REQUEST['cancel'] ) ) { + // user cancelled - just continue on, doing nothing + } elseif( empty( $_REQUEST['confirm'] ) ) { + $formHash['remove'] = $_REQUEST["remove"]; + $formHash['blog_id'] = $gBlog->mBlogId; + $gBitSystem->confirmDialog( $formHash, array( 'warning' => 'Are you sure you want to delete the blog '.$gBlog->getTitle().'? All posts will be permanently deleted.', 'error' => 'This cannot be undone!' ) ); + } else { + $gBlog->expunge(); + } } } |
