summaryrefslogtreecommitdiff
path: root/broadcast.php
diff options
context:
space:
mode:
authorlsces <lester@lsces.co.uk>2026-02-02 21:05:12 +0000
committerlsces <lester@lsces.co.uk>2026-02-02 21:05:12 +0000
commitbebc6163d8c123b646d068437e06954a745e9f6b (patch)
tree1201acd38954a623edfbc906bbbd3e0e217c4986 /broadcast.php
parent302401f8a856a16ea04b0f08c8facb22e4ebd719 (diff)
downloadmessages-bebc6163d8c123b646d068437e06954a745e9f6b.tar.gz
messages-bebc6163d8c123b646d068437e06954a745e9f6b.tar.bz2
messages-bebc6163d8c123b646d068437e06954a745e9f6b.zip
Restructure layout in line with namespace addition and PHP8.4 style rules
Diffstat (limited to 'broadcast.php')
-rwxr-xr-x[-rw-r--r--]broadcast.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/broadcast.php b/broadcast.php
index 57eb60d..0c30dbf 100644..100755
--- a/broadcast.php
+++ b/broadcast.php
@@ -1,4 +1,5 @@
<?php
+
/**
* message package modules
*
@@ -12,11 +13,11 @@
* required setup
*/
require_once( '../kernel/includes/setup_inc.php' );
-
-include_once( MESSAGES_PKG_CLASS_PATH.'Messages.php' );
+use Bitweaver\Messages\Messages;
+use Bitweaver\KernelTools;
if( !$gBitUser->isRegistered() ) {
- $gBitSmarty->fatalError( tra( "You are not logged in" ) );
+// $gBitSmarty->fatalError( KernelTools::tra( "You are not logged in" ) );
}
$gBitSystem->isPackageActive( 'messages', TRUE );
@@ -35,7 +36,7 @@ if( isset( $_REQUEST['send'] ) ) {
}
if( $gBitUser->isAdmin() ) {
- $pListHash = array('sort_mode' => 'group_id_asc');
+ $pListHash = [ 'sort_mode' => 'group_id_asc' ];
$groups = $gBitUser->getAllGroups( $pListHash );
} else {
$gBitUser->loadGroups();
@@ -44,5 +45,4 @@ if( $gBitUser->isAdmin() ) {
$gBitSmarty->assign( 'groups', $groups );
$gBitSmarty->assign( 'feedback', $feedback );
-$gBitSystem->display( 'bitpackage:messages/broadcast.tpl', NULL, array( 'display_mode' => 'display' ));
-?>
+$gBitSystem->display( 'bitpackage:messages/broadcast.tpl', NULL, [ 'display_mode' => 'display' ]);