diff options
| author | Lester Caine <lester@lsces.co.uk> | 2026-05-16 18:55:57 +0100 |
|---|---|---|
| committer | Lester Caine <lester@lsces.co.uk> | 2026-05-16 18:55:57 +0100 |
| commit | 00a38a4be58467654794db404bb7ee69382072fe (patch) | |
| tree | e90043ea636f0c4ca890d0befeefa9849193fbfc /recent_posts.php | |
| parent | f0d0bd6451fc0fc08c919a2208a9ac6bee3657a1 (diff) | |
| download | blogs-00a38a4be58467654794db404bb7ee69382072fe.tar.gz blogs-00a38a4be58467654794db404bb7ee69382072fe.tar.bz2 blogs-00a38a4be58467654794db404bb7ee69382072fe.zip | |
Extend recent_blogs to allow Read More to create a pop-up of the full post
Diffstat (limited to 'recent_posts.php')
| -rwxr-xr-x | recent_posts.php | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/recent_posts.php b/recent_posts.php index e48cccf..73072da 100755 --- a/recent_posts.php +++ b/recent_posts.php @@ -19,13 +19,8 @@ require_once BLOGS_PKG_INCLUDE_PATH.'lookup_blog_inc.php'; // Is package installed and enabled $gBitSystem->verifyPackage( 'blogs' ); -// Now check permissions to access this page -// $gContent->verifyViewPermission(); - -if ( $gBitSystem->isFeatureActive( 'blog_ajax_more' ) && $gBitThemes->isJavascriptEnabled() ){ - $gBitSmarty->assign('ajax_more', true); - $gBitThemes->loadAjax( 'mochikit', [ 'Iter.js', 'DOM.js', 'Style.js', 'Color.js', 'Position.js', 'Visual.js' ] ); -} +// Now check permissions to access this page - global check only, no specific blog loaded here +$gBitUser->verifyPermission( 'p_blogs_view' ); // Display the template $gDefaultCenter = 'bitpackage:blogs/center_list_blog_posts.tpl'; |
