summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
author"Lester Caine ext:(%22) <lester@lsces.co.uk>2012-05-26 07:46:39 +0100
committer"Lester Caine ext:(%22) <lester@lsces.co.uk>2012-05-26 07:46:39 +0100
commit571f2a76f85a824362369eae606b91821c8a68d2 (patch)
tree8c404d135de359f17cb92df6a850bdfce9e10bd9 /modules
parent5cf799caeb8780a31b166c73e247931560117a0d (diff)
downloadblogs-571f2a76f85a824362369eae606b91821c8a68d2.tar.gz
blogs-571f2a76f85a824362369eae606b91821c8a68d2.tar.bz2
blogs-571f2a76f85a824362369eae606b91821c8a68d2.zip
Correct version of BitUser should already be loaded ... need confirmation
on a non RoleUser setup
Diffstat (limited to 'modules')
-rw-r--r--modules/lastblogposts/mod_last_blog_posts.php6
-rw-r--r--modules/mod_blog_roll.php2
-rw-r--r--modules/mod_last_blog_posts.php6
-rw-r--r--modules/mod_last_created_blogs.php2
-rw-r--r--modules/mod_last_modified_blogs.php2
-rw-r--r--modules/mod_top_active_blogs.php2
-rw-r--r--modules/mod_top_visited_blogs.php2
7 files changed, 11 insertions, 11 deletions
diff --git a/modules/lastblogposts/mod_last_blog_posts.php b/modules/lastblogposts/mod_last_blog_posts.php
index 480a058..5a1096c 100644
--- a/modules/lastblogposts/mod_last_blog_posts.php
+++ b/modules/lastblogposts/mod_last_blog_posts.php
@@ -9,13 +9,13 @@
* required setup
*/
include_once( BLOGS_PKG_PATH.'BitBlogPost.php' );
-require_once( USERS_PKG_PATH.'BitUser.php' );
+//require_once( USERS_PKG_PATH.'BitUser.php' );
// moduleParams contains lots of goodies: extract for easier handling
extract( $moduleParams );
$date_start = NULL;
-if( !empty($module_params['date_start_offset']) ){
+if( !empty($module_params['date_start_offset']) ){
//offset is passed as number of hours
$date_start = time() - ( $module_params['date_start_offset'] * 3600 );
}
@@ -45,7 +45,7 @@ if( !$gBitUser->hasPermission( 'p_blogs_admin' )) {
$listHash['enforce_status'] = TRUE;
if ( !empty( $module_params['status'] ) && $module_params['status'] = "draft" && isset( $gBitUser->mUserId ) ){
- // if we are getting drafts then get future posts too
+ // if we are getting drafts then get future posts too
$listHash['show_future'] = TRUE;
$listHash['min_status_id'] = -6;
$listHash['max_status_id'] = -4;
diff --git a/modules/mod_blog_roll.php b/modules/mod_blog_roll.php
index 5f21cc5..60b68b1 100644
--- a/modules/mod_blog_roll.php
+++ b/modules/mod_blog_roll.php
@@ -9,7 +9,7 @@
* required setup
*/
include_once( BLOGS_PKG_PATH.'BitBlog.php' );
-require_once( USERS_PKG_PATH.'BitUser.php' );
+//require_once( USERS_PKG_PATH.'BitUser.php' );
global $gQueryUserId, $module_rows, $moduleParams;
diff --git a/modules/mod_last_blog_posts.php b/modules/mod_last_blog_posts.php
index 480a058..5a1096c 100644
--- a/modules/mod_last_blog_posts.php
+++ b/modules/mod_last_blog_posts.php
@@ -9,13 +9,13 @@
* required setup
*/
include_once( BLOGS_PKG_PATH.'BitBlogPost.php' );
-require_once( USERS_PKG_PATH.'BitUser.php' );
+//require_once( USERS_PKG_PATH.'BitUser.php' );
// moduleParams contains lots of goodies: extract for easier handling
extract( $moduleParams );
$date_start = NULL;
-if( !empty($module_params['date_start_offset']) ){
+if( !empty($module_params['date_start_offset']) ){
//offset is passed as number of hours
$date_start = time() - ( $module_params['date_start_offset'] * 3600 );
}
@@ -45,7 +45,7 @@ if( !$gBitUser->hasPermission( 'p_blogs_admin' )) {
$listHash['enforce_status'] = TRUE;
if ( !empty( $module_params['status'] ) && $module_params['status'] = "draft" && isset( $gBitUser->mUserId ) ){
- // if we are getting drafts then get future posts too
+ // if we are getting drafts then get future posts too
$listHash['show_future'] = TRUE;
$listHash['min_status_id'] = -6;
$listHash['max_status_id'] = -4;
diff --git a/modules/mod_last_created_blogs.php b/modules/mod_last_created_blogs.php
index 88dc9f9..d7eb948 100644
--- a/modules/mod_last_created_blogs.php
+++ b/modules/mod_last_created_blogs.php
@@ -9,7 +9,7 @@
* required setup
*/
include_once( BLOGS_PKG_PATH.'BitBlog.php' );
-require_once( USERS_PKG_PATH.'BitUser.php' );
+//require_once( USERS_PKG_PATH.'BitUser.php' );
global $gQueryUserId, $module_rows, $module_params;
diff --git a/modules/mod_last_modified_blogs.php b/modules/mod_last_modified_blogs.php
index 876401f..535adec 100644
--- a/modules/mod_last_modified_blogs.php
+++ b/modules/mod_last_modified_blogs.php
@@ -9,7 +9,7 @@
* required setup
*/
include_once( BLOGS_PKG_PATH.'BitBlog.php' );
-require_once( USERS_PKG_PATH.'BitUser.php' );
+//require_once( USERS_PKG_PATH.'BitUser.php' );
global $gQueryUserId, $moduleParams;
//$params = $moduleParams['module_params'];
diff --git a/modules/mod_top_active_blogs.php b/modules/mod_top_active_blogs.php
index 85b7782..9ddc059 100644
--- a/modules/mod_top_active_blogs.php
+++ b/modules/mod_top_active_blogs.php
@@ -9,7 +9,7 @@
* required setup
*/
include_once( BLOGS_PKG_PATH.'BitBlog.php' );
-require_once( USERS_PKG_PATH.'BitUser.php' );
+//require_once( USERS_PKG_PATH.'BitUser.php' );
global $gQueryUserId, $gBitThemes, $module_rows, $module_params;
diff --git a/modules/mod_top_visited_blogs.php b/modules/mod_top_visited_blogs.php
index 0294dad..459f551 100644
--- a/modules/mod_top_visited_blogs.php
+++ b/modules/mod_top_visited_blogs.php
@@ -9,7 +9,7 @@
* required setup
*/
include_once( BLOGS_PKG_PATH.'BitBlog.php' );
-require_once( USERS_PKG_PATH.'BitUser.php' );
+//require_once( USERS_PKG_PATH.'BitUser.php' );
global $gBitThemes;