summaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
authorlsces <lester@lsces.co.uk>2025-08-27 17:26:04 +0100
committerlsces <lester@lsces.co.uk>2025-08-27 17:26:04 +0100
commita57c635d8319f914f82eb5937eedd79aabba46e8 (patch)
tree9a527e565fa932705d8360f620d3bc0267a8a949 /index.php
parente4091e0a8778d65dbf0a8252c362aea9644fbf8c (diff)
downloadstats-a57c635d8319f914f82eb5937eedd79aabba46e8.tar.gz
stats-a57c635d8319f914f82eb5937eedd79aabba46e8.tar.bz2
stats-a57c635d8319f914f82eb5937eedd79aabba46e8.zip
Code updated to PHP8.4 and namespace
Diffstat (limited to 'index.php')
-rw-r--r--index.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/index.php b/index.php
index 6d5c017..75d3b2f 100644
--- a/index.php
+++ b/index.php
@@ -10,8 +10,9 @@
/**
* required setup
*/
-require_once( '../kernel/includes/setup_inc.php' );
-require_once( STATS_PKG_CLASS_PATH.'Statistics.php' );
+require_once '../kernel/includes/setup_inc.php';
+use Bitweaver\KernelTools;
+use Bitweaver\Stats\Statistics;
$gBitSystem->verifyPackage( 'stats' );
$gBitSystem->verifyPermission( 'p_stats_view' );
@@ -22,5 +23,4 @@ $gBitSmarty->assign( 'siteStats', $gStats->getSiteStats() );
$gBitSmarty->assign( 'contentOverview', $gStats->getContentOverview( $_REQUEST ));
$gBitSmarty->assign( 'contentStats', $gStats->getContentStats() );
-$gBitSystem->display( 'bitpackage:stats/stats.tpl', tra( "Statistics" ) , array( 'display_mode' => 'display' ));
-?>
+$gBitSystem->display( 'bitpackage:stats/stats.tpl', KernelTools::tra( "Statistics" ) , [ 'display_mode' => 'display' ] );