From e6088323c26fa74760dad1e10f8761c643905026 Mon Sep 17 00:00:00 2001 From: Tekimaki Date: Fri, 27 Feb 2009 17:53:26 +0000 Subject: rollback comment allow check as its not helpful for core purpose - feh --- LibertyContent.php | 22 +++++----------------- 1 file changed, 5 insertions(+), 17 deletions(-) diff --git a/LibertyContent.php b/LibertyContent.php index c055705..7b43904 100644 --- a/LibertyContent.php +++ b/LibertyContent.php @@ -3,7 +3,7 @@ * Management of Liberty content * * @package liberty -* @version $Header: /cvsroot/bitweaver/_bit_liberty/LibertyContent.php,v 1.395 2009/02/27 17:50:58 tekimaki_admin Exp $ +* @version $Header: /cvsroot/bitweaver/_bit_liberty/LibertyContent.php,v 1.396 2009/02/27 17:53:26 tekimaki_admin Exp $ * @author spider */ @@ -3334,23 +3334,11 @@ class LibertyContent extends LibertyBase { * @return TRUE on success, FALSE on failure */ function isCommentable() { - if( $this->isValid() ){ - if( $this->getPreference( 'allow_comments' ) == 'y' ) { - return TRUE; - } else { - $setting = $this->getField( 'allow_comments' ); - return( $setting == TRUE || $setting == 'y' ); - } - }else{ - /** - * although comments are opt in, return true for new content - * since all content can potentially support comments - * this simplifies comment services and minimizes overrides - * in subclasses which more typically allow comments then never - * - * override in subclass if never want to allow comments - **/ + if( $this->getPreference( 'allow_comments' ) == 'y' ) { return TRUE; + } else { + $setting = $this->getField( 'allow_comments' ); + return( $setting == TRUE || $setting == 'y' ); } } -- cgit v1.3