diff options
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/lastblogposts/mod_last_blog_posts.php | 6 | ||||
| -rw-r--r-- | modules/mod_blog_roll.php | 2 | ||||
| -rw-r--r-- | modules/mod_last_blog_posts.php | 6 | ||||
| -rw-r--r-- | modules/mod_last_created_blogs.php | 2 | ||||
| -rw-r--r-- | modules/mod_last_modified_blogs.php | 2 | ||||
| -rw-r--r-- | modules/mod_top_active_blogs.php | 2 | ||||
| -rw-r--r-- | modules/mod_top_visited_blogs.php | 2 |
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; |
