From 0bb2516c7143125e58e21295fd47b2064d31bb64 Mon Sep 17 00:00:00 2001 From: lsces Date: Thu, 26 Mar 2026 17:38:36 +0000 Subject: Namespace changes --- attachments.php | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'attachments.php') diff --git a/attachments.php b/attachments.php index 248602f..945ad12 100755 --- a/attachments.php +++ b/attachments.php @@ -1,4 +1,5 @@ isRegistered() ) { - $gBitSystem->fatalError( tra( 'You need to be logged in to view this page.' )); + $gBitSystem->fatalError( KernelTools::tra( 'You need to be logged in to view this page.' )); } $feedback = []; @@ -25,10 +29,10 @@ if( $gBitUser->isAdmin() ) { if( !empty( $listHash['login'] ) && $listHash['login'] == 'all' ) { $listHash['user_id'] = null; } elseif( !empty( $listHash['login'] ) ) { - if( $userInfo = $gBitUser->getUserInfo( array( 'login' => $listHash['login'] ) ) ) { + if( $userInfo = $gBitUser->getUserInfo( [ 'login' => $listHash['login'] ] ) ) { $listHash['user_id'] = $userInfo['user_id']; } else { - $feedback['error'] = tra( 'That user does not exist.' ); + $feedback['error'] = KernelTools::tra( 'That user does not exist.' ); } } else { $listHash['user_id'] = $gBitUser->mUserId; @@ -41,5 +45,4 @@ $attachments = $gContent->getAttachmentList( $listHash ); $gBitSmarty->assign( 'listInfo', $listHash['listInfo'] ); $gBitSmarty->assign( 'attachments', $attachments ); $gBitSmarty->assign( 'feedback', $feedback ); -$gBitSystem->display( 'bitpackage:liberty/attachments.tpl', tra( 'Attachments' ), array( 'display_mode' => 'display' )); -?> +$gBitSystem->display( 'bitpackage:liberty/attachments.tpl', KernelTools::tra( 'Attachments' ), [ 'display_mode' => 'display' ]); -- cgit v1.3