summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xadmin/boardsync_inc.php5
-rwxr-xr-xboards_rss.php6
2 files changed, 7 insertions, 4 deletions
diff --git a/admin/boardsync_inc.php b/admin/boardsync_inc.php
index 4149f8b..ee976fd 100755
--- a/admin/boardsync_inc.php
+++ b/admin/boardsync_inc.php
@@ -1,4 +1,6 @@
<?php
+use Bitweaver\Users\RolePermUser;
+
function board_sync_run($pLog = false) {
global $gBitUser, $gBitSystem;
@@ -399,8 +401,7 @@ function board_sync_process_message( $pMbox, $pMsgNum, $pMsgHeader, $pMsgStructu
// Load the message sending user
if( $userInfo['user_id'] != ANONYMOUS_USER_ID ) {
- $userClass = $gBitSystem->getConfig( 'user_class', 'BitPermUser' );
- $newBitUser = new $userClass( $userInfo['user_id'] );
+ $newBitUser = new RolePermUser( $userInfo['user_id'] );
$newBitUser->load( true );
}
if( !empty( $newBitUser ) && $newBitUser->isValid() ){
diff --git a/boards_rss.php b/boards_rss.php
index 09cc042..c8a4244 100755
--- a/boards_rss.php
+++ b/boards_rss.php
@@ -5,6 +5,8 @@
* @subpackage functions
*/
+use Bitweaver\Users\RoleUser;
+
/**
* Initialization
*/
@@ -100,7 +102,7 @@ foreach( $feeds as $feed ) {
$item->link = 'http://'.$_SERVER['HTTP_HOST'].BIT_ROOT_URL.'index.php?content_id='.$feed['content_id']; //comment paths are tricky, but work automagically through the front door
$item->description = $feed['parsed_data'];
$item->date = ( int )$feed['last_modified'];
- $user = new BitUser($feed['user_id']);
+ $user = new RoleUser($feed['user_id']);
break;
case 'bitboard':
default:
@@ -122,7 +124,7 @@ foreach( $feeds as $feed ) {
//TODO allow proper sort order
//$item->date = ( int )$feed['event_date'];
$item->date = ( int )$feed['llc_last_modified'];
- $user = new BitUser($feed['llc_user_id']);
+ $user = new RoleUser($feed['llc_user_id']);
break;
}