diff options
| author | wjames5 <will@tekimaki.com> | 2009-06-18 03:49:20 +0000 |
|---|---|---|
| committer | wjames5 <will@tekimaki.com> | 2009-06-18 03:49:20 +0000 |
| commit | 158d83b26e620e35cc48920823d36605d3bb9a86 (patch) | |
| tree | 2890e5572b36bcd46037d45347b73b1250999442 | |
| parent | dea4445cd129007056b360fed7fa0608fa0d7c98 (diff) | |
| download | liberty-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.php | 7 |
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); } |
