diff options
| author | Lester Caine <lester@lsces.co.uk> | 2026-05-15 15:39:14 +0100 |
|---|---|---|
| committer | Lester Caine <lester@lsces.co.uk> | 2026-05-15 15:39:14 +0100 |
| commit | d57a7a55a92fc20a7f281cf940b920d945323bba (patch) | |
| tree | 195ce6688b4ea0d39ad05b42d3f751798026c9c7 | |
| parent | 9162909f3173a630f542087add748e8d5d48e82b (diff) | |
| download | boards-d57a7a55a92fc20a7f281cf940b920d945323bba.tar.gz boards-d57a7a55a92fc20a7f281cf940b920d945323bba.tar.bz2 boards-d57a7a55a92fc20a7f281cf940b920d945323bba.zip | |
To simplyfy maintenence BitUser classes have been retired and active code base defaulted to ROLE_MODEL
| -rwxr-xr-x | admin/boardsync_inc.php | 5 | ||||
| -rwxr-xr-x | 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 @@ <?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; } |
