diff options
| author | Lester Caine <lester@lsces.co.uk> | 2026-05-15 16:40:05 +0100 |
|---|---|---|
| committer | Lester Caine <lester@lsces.co.uk> | 2026-05-15 16:40:05 +0100 |
| commit | c8aba9e4d5ff8fd2f13ec4e96c206c726df568b0 (patch) | |
| tree | d2074fcd322ff094c51971b22e24bec2354e2070 /modules | |
| parent | 58cad39ab806494dbc6f440ce4f35793f5d7f20c (diff) | |
| download | liberty-c8aba9e4d5ff8fd2f13ec4e96c206c726df568b0.tar.gz liberty-c8aba9e4d5ff8fd2f13ec4e96c206c726df568b0.tar.bz2 liberty-c8aba9e4d5ff8fd2f13ec4e96c206c726df568b0.zip | |
Namespace fixes
Diffstat (limited to 'modules')
| -rwxr-xr-x | modules/mod_last_changes.php | 5 | ||||
| -rwxr-xr-x | modules/mod_top_authors.php | 5 |
2 files changed, 6 insertions, 4 deletions
diff --git a/modules/mod_last_changes.php b/modules/mod_last_changes.php index 22656fb..905e2d6 100755 --- a/modules/mod_last_changes.php +++ b/modules/mod_last_changes.php @@ -11,6 +11,7 @@ /** * Initialization */ +use Bitweaver\KernelTools; global $gQueryUser, $gBitUser, $gLibertySystem, $moduleParams; extract( $moduleParams ); @@ -21,9 +22,9 @@ if( !empty( $gQueryUser->mUserId ) ) { if( empty( $module_title ) ) { if( !empty( $module_params['content_type_guid'] ) && !empty( $gLibertySystem->mContentTypes[$module_params['content_type_guid']] ) ) { - $title = tra( "Last Changes" ).': '.$gLibertySystem->getContentTypeName( $module_params['content_type_guid'] ); + $title = KernelTools::tra( "Last Changes" ).': '.$gLibertySystem->getContentTypeName( $module_params['content_type_guid'] ); } else { - $title = tra( "Last Changes" ); + $title = KernelTools::tra( "Last Changes" ); } $moduleParams['title'] = $title; } diff --git a/modules/mod_top_authors.php b/modules/mod_top_authors.php index e495dfb..ce6d0ce 100755 --- a/modules/mod_top_authors.php +++ b/modules/mod_top_authors.php @@ -6,6 +6,7 @@ * @package liberty * @subpackage modules */ +use Bitweaver\KernelTools; global $gQueryUser, $gBitUser, $gLibertySystem, $moduleParams; extract( $moduleParams ); @@ -13,10 +14,10 @@ extract( $moduleParams ); /* this doesn't work as expected. without it, the user can fill in the title himself if( empty( $module_title ) ) { if( !empty( $module_params['content_type_guid'] ) && !empty( $gLibertySystem->mContentTypes[$module_params['content_type_guid']] ) ) { - $title = tra( "Top Authors" ).': '.$gLibertySystem->getContentTypeName( $module_params['content_type_guid'] ); + $title = KernelTools::tra( "Top Authors" ).': '.$gLibertySystem->getContentTypeName( $module_params['content_type_guid'] ); } else { $gBitSmarty->assign( 'showContentType', true ); - $title = tra( "Top Authors" ); + $title = KernelTools::tra( "Top Authors" ); } $gBitSmarty->assign( 'moduleTitle', $title ); } |
