summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTekimaki <tekimaki_admin@users.sourceforge.net>2009-02-27 17:53:26 +0000
committerTekimaki <tekimaki_admin@users.sourceforge.net>2009-02-27 17:53:26 +0000
commite6088323c26fa74760dad1e10f8761c643905026 (patch)
treed2cae335cffb2af741a59523c0d931cbf0d31483
parent28235297bd4dadcbb599e31b522ae9b62edf690e (diff)
downloadliberty-e6088323c26fa74760dad1e10f8761c643905026.tar.gz
liberty-e6088323c26fa74760dad1e10f8761c643905026.tar.bz2
liberty-e6088323c26fa74760dad1e10f8761c643905026.zip
rollback comment allow check as its not helpful for core purpose - feh
-rw-r--r--LibertyContent.php22
1 files 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 <spider@steelsun.com>
*/
@@ -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' );
}
}