From d57a7a55a92fc20a7f281cf940b920d945323bba Mon Sep 17 00:00:00 2001 From: Lester Caine Date: Fri, 15 May 2026 15:39:14 +0100 Subject: To simplyfy maintenence BitUser classes have been retired and active code base defaulted to ROLE_MODEL --- admin/boardsync_inc.php | 5 +++-- boards_rss.php | 6 ++++-- 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 @@ 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; } -- cgit v1.3