diff options
| author | wjames5 <will@tekimaki.com> | 2008-03-29 16:02:05 +0000 |
|---|---|---|
| committer | wjames5 <will@tekimaki.com> | 2008-03-29 16:02:05 +0000 |
| commit | 96552d35340e8cb949867f72c1441a9aecdad753 (patch) | |
| tree | 93dab7ccdd65ddc359dd85d056f8ed565247d074 /recent_posts.php | |
| parent | 37df39b5dc13c4d9e8772c75267b1e92b759a90b (diff) | |
| download | blogs-96552d35340e8cb949867f72c1441a9aecdad753.tar.gz blogs-96552d35340e8cb949867f72c1441a9aecdad753.tar.bz2 blogs-96552d35340e8cb949867f72c1441a9aecdad753.zip | |
user verifyViewPermission instead of BitSystem::verifyPermission for view check
Diffstat (limited to 'recent_posts.php')
| -rw-r--r-- | recent_posts.php | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/recent_posts.php b/recent_posts.php index cb97165..bbb14be 100644 --- a/recent_posts.php +++ b/recent_posts.php @@ -1,6 +1,6 @@ <?php /** - * @version $Header: /cvsroot/bitweaver/_bit_blogs/recent_posts.php,v 1.8 2007/11/07 17:41:26 wjames5 Exp $ + * @version $Header: /cvsroot/bitweaver/_bit_blogs/recent_posts.php,v 1.9 2008/03/29 16:02:05 wjames5 Exp $ * * @package blogs * @subpackage functions @@ -14,11 +14,12 @@ require_once( '../bit_setup_inc.php' ); // Is package installed and enabled $gBitSystem->verifyPackage( 'blogs' ); -// Now check permissions to access this page -$gBitSystem->verifyPermission( 'p_blogs_view' ); - require_once( BLOGS_PKG_PATH.'lookup_blog_inc.php'); +// Now check permissions to access this page +// DEPRECATED $gBitSystem->verifyPermission( 'p_blogs_view' ); +$gContent->verifyViewPermission(); + if ( $gBitSystem->isFeatureActive( 'blog_ajax_more' ) && $gBitThemes->isJavascriptEnabled() ){ $gBitSmarty->assign('ajax_more', TRUE); $gBitThemes->loadAjax( 'mochikit', array( 'Iter.js', 'DOM.js', 'Style.js', 'Color.js', 'Position.js', 'Visual.js' ) ); |
