diff options
Diffstat (limited to 'index.php')
| -rwxr-xr-x[-rw-r--r--] | index.php | 15 |
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' )); } |
