summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwjames5 <will@tekimaki.com>2009-06-18 03:49:20 +0000
committerwjames5 <will@tekimaki.com>2009-06-18 03:49:20 +0000
commit158d83b26e620e35cc48920823d36605d3bb9a86 (patch)
tree2890e5572b36bcd46037d45347b73b1250999442
parentdea4445cd129007056b360fed7fa0608fa0d7c98 (diff)
downloadliberty-158d83b26e620e35cc48920823d36605d3bb9a86.tar.gz
liberty-158d83b26e620e35cc48920823d36605d3bb9a86.tar.bz2
liberty-158d83b26e620e35cc48920823d36605d3bb9a86.zip
call mime laod if we're allowing attachments or admin to populate mStorage
-rw-r--r--LibertyComment.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/LibertyComment.php b/LibertyComment.php
index 7e7fea1..b8e8a5e 100644
--- a/LibertyComment.php
+++ b/LibertyComment.php
@@ -3,7 +3,7 @@
* Management of Liberty Content
*
* @package liberty
- * @version $Header: /cvsroot/bitweaver/_bit_liberty/LibertyComment.php,v 1.84 2009/06/17 23:24:52 wjames5 Exp $
+ * @version $Header: /cvsroot/bitweaver/_bit_liberty/LibertyComment.php,v 1.85 2009/06/18 03:49:20 wjames5 Exp $
* @author spider <spider@steelsun.com>
*/
@@ -72,6 +72,11 @@ class LibertyComment extends LibertyMime {
$this->mInfo = $row;
$this->mContentId = $row['content_id'];
$this->mCommentId = $row['comment_id'];
+
+ // call parent load for attachment data like other Mime derived classes, only need it if feature is active or admin
+ if( $gBitSystem->isFeatureActive( 'comments_allow_attachments' ) || $gBitUser->isAdmin() ){
+ LibertyMime::load();
+ }
}
return count($this->mInfo);
}