diff options
| author | wjames5 <will@tekimaki.com> | 2008-04-17 18:16:09 +0000 |
|---|---|---|
| committer | wjames5 <will@tekimaki.com> | 2008-04-17 18:16:09 +0000 |
| commit | d4aa47679576897a2c6667fd3af5d6bd09c02af7 (patch) | |
| tree | 018d17b23c26956ed8decf909d9eab9f3ddf3866 /admin | |
| parent | d1eb2f68dbcdab8183ff70ec1e2ef4c04ce92b3e (diff) | |
| download | liberty-d4aa47679576897a2c6667fd3af5d6bd09c02af7.tar.gz liberty-d4aa47679576897a2c6667fd3af5d6bd09c02af7.tar.bz2 liberty-d4aa47679576897a2c6667fd3af5d6bd09c02af7.zip | |
move moderate comments out of liberty to its own pkg
Diffstat (limited to 'admin')
| -rw-r--r-- | admin/comments.php | 27 |
1 files changed, 1 insertions, 26 deletions
diff --git a/admin/comments.php b/admin/comments.php index 263f82b..1addc6d 100644 --- a/admin/comments.php +++ b/admin/comments.php @@ -34,33 +34,8 @@ $commentSettings = array( ); $gBitSmarty->assign( 'commentSettings', $commentSettings ); -$commentModerationSettings = array(); - -if ( $gBitSystem->isPackageActive('moderation') ){ - $commentModerationSettings = array( - "comments_allow_moderation" => array( - 'label' => 'Allow admins to moderate comments', - 'note' => 'Checking this allows users with the permission to edit comments the ability to force moderation on comment posts. When comments are moderated they are automatically hidden until approved by a moderator. This is opt in, meaning you can limit the moderation requirement on a content by content basis.', - 'page' => '', - ), - "comments_allow_owner_moderation" => array( - 'label' => 'Allow content creators to moderate comments on their content', - 'note' => 'This is similar to allowing admins to moderate comments, but this lets the creator of a content item to require and moderate the comments on the things they create. Administrators will also be able to admin those comments.', - 'page' => '', - ), - "comments_moderate_all" => array( - 'label' => 'Require moderation of all comments', - 'note' => 'This forces all comments to be held for moderation before being published. We recommend this only if you are have extensive problems with spam or malicious comments; on high traffic sites this features requires a lot of hands on work to read all comments', - 'page' => '', - ), - ); - - $gBitSmarty->assign( 'commentModerationSettings', $commentModerationSettings ); -} - if( !empty( $_REQUEST['change_prefs'] ) ) { - $commentOptions = array_merge( $commentSettings, $commentModerationSettings ); - foreach( array_keys( $commentOptions ) as $item ) { + foreach( array_keys( $commentSettings ) as $item ) { simple_set_toggle( $item, LIBERTY_PKG_NAME ); } |
