summaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
authorlsces <lester@lsces.co.uk>2025-08-27 17:27:24 +0100
committerlsces <lester@lsces.co.uk>2025-08-27 17:27:24 +0100
commit0aa24a7f24b573fd3f19cb888dfefcdc31ae6b82 (patch)
tree0ebde514a2cbfeb6063e94717faceba7a38a9222 /index.php
parentb781b829cc69b630da203ab85cdfd1dcffc7e7a3 (diff)
downloadtags-0aa24a7f24b573fd3f19cb888dfefcdc31ae6b82.tar.gz
tags-0aa24a7f24b573fd3f19cb888dfefcdc31ae6b82.tar.bz2
tags-0aa24a7f24b573fd3f19cb888dfefcdc31ae6b82.zip
Code updated to PHP8.4 and namespaceV5-php84
Diffstat (limited to 'index.php')
-rwxr-xr-x[-rw-r--r--]index.php15
1 files changed, 8 insertions, 7 deletions
diff --git a/index.php b/index.php
index 6171572..ac4253a 100644..100755
--- a/index.php
+++ b/index.php
@@ -1,6 +1,7 @@
<?php
-require_once( "../kernel/includes/setup_inc.php" );
-require_once( TAGS_PKG_CLASS_PATH.'LibertyTag.php' );
+require_once "../kernel/includes/setup_inc.php";
+use Bitweaver\KernelTools;
+use Bitweaver\Tags\LibertyTag;
$gBitSystem->verifyPackage( 'tags' );
@@ -8,16 +9,16 @@ $gBitSystem->verifyPermission('p_tags_view');
$tag = new LibertyTag();
-$_REQUEST['max_records'] = !empty( $_REQUEST['max_records'] ) ? $_REQUEST['max_records'] : NULL;
+$_REQUEST['max_records'] = !empty( $_REQUEST['max_records'] ) ? $_REQUEST['max_records'] : null;
$listHash = $_REQUEST;
$tagHash = $_REQUEST;
-$gBitSmarty->assign( 'cloud', TRUE );
+$gBitSmarty->assign( 'cloud', true );
if( isset($_REQUEST['tags']) ){
- $pageTitle = tra( 'Tagged Content' );
+ $pageTitle = KernelTools::tra( 'Tagged Content' );
if( $listData = $tag->assignContentList( $listHash ) ) {
- $pageTitle .= ' '.tra( 'with' ).' '.$_REQUEST['tags'];
+ $pageTitle .= ' '.KernelTools::tra( 'with' ).' '.$_REQUEST['tags'];
$gBitSystem->setCanonicalLink( $tag->getDisplayUrlWithTag( $_REQUEST['tags'] ) );
} else {
$gBitSystem->setHttpStatus( HttpStatusCodes::HTTP_GONE );
@@ -29,6 +30,6 @@ if( isset($_REQUEST['tags']) ){
}else{
$listData = $tag->getList( $listHash );
$gBitSmarty->assign( 'tagData', $listData["data"] );
- $gBitSystem->display( 'bitpackage:tags/list_tags.tpl', tra( 'Tags' ) , array( 'display_mode' => 'display' ));
+ $gBitSystem->display( 'bitpackage:tags/list_tags.tpl', KernelTools::tra( 'Tags' ) , array( 'display_mode' => 'display' ));
}