diff options
| author | Lester Caine <lester@lsces.co.uk> | 2026-06-04 13:02:47 +0100 |
|---|---|---|
| committer | Lester Caine <lester@lsces.co.uk> | 2026-06-04 13:02:47 +0100 |
| commit | 256142a9f228999f42410b24aa2b4e46341a2e71 (patch) | |
| tree | 446102fe4dec80209b323d3953376d869d454ffd | |
| parent | f2aea55a1eadc36e3c61aae90f4be05150455340 (diff) | |
| download | themes-256142a9f228999f42410b24aa2b4e46341a2e71.tar.gz themes-256142a9f228999f42410b24aa2b4e46341a2e71.tar.bz2 themes-256142a9f228999f42410b24aa2b4e46341a2e71.zip | |
Fix PHP-array icon names missed by template conversion
Conversion script matched iname="..." template syntax but not PHP
array 'iname'=>'...' syntax. Three remaining cases:
- function.bithelp.php: icon-cogs -> preferences-system, icon-question-sign -> help-browser
- function.smartlink.php: icon-sort-up/down -> view-sort-ascending/descending
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
| -rwxr-xr-x | smartyplugins/function.bithelp.php | 4 | ||||
| -rwxr-xr-x | smartyplugins/function.smartlink.php | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/smartyplugins/function.bithelp.php b/smartyplugins/function.bithelp.php index d16d578..1798e3e 100755 --- a/smartyplugins/function.bithelp.php +++ b/smartyplugins/function.bithelp.php @@ -19,10 +19,10 @@ function smarty_function_bithelp($params, &$gBitSmarty) { $outstr = ""; if( $gBitSystem->isFeatureActive('site_online_help') ){ if($gBitUser->hasPermission( 'p_admin' )){ - $outstr .= "<a href=\"".KERNEL_PKG_URL."admin/index.php\">".smarty_function_biticon(['ipackage'=>'icons', 'iname'=>'icon-cogs', 'iexplain'=>'Administration Menu'] )."</a> "; + $outstr .= "<a href=\"".KERNEL_PKG_URL."admin/index.php\">".smarty_function_biticon(['ipackage'=>'icons', 'iname'=>'preferences-system', 'iexplain'=>'Administration Menu'] )."</a> "; } if( $helpInfo = $gBitSmarty->getTemplateVars('TikiHelpInfo') ) { - $outstr .= "<a href=\"".$helpInfo["URL"]."\" >".smarty_function_biticon(['ipackage'=>'icons', 'iname'=>'icon-question-sign', 'iexplain'=>(empty($helpInfo["Desc"])?"help":$helpInfo["Desc"])] )."</a>"; + $outstr .= "<a href=\"".$helpInfo["URL"]."\" >".smarty_function_biticon(['ipackage'=>'icons', 'iname'=>'help-browser', 'iexplain'=>(empty($helpInfo["Desc"])?"help":$helpInfo["Desc"])] )."</a>"; } } return $outstr; diff --git a/smartyplugins/function.smartlink.php b/smartyplugins/function.smartlink.php index 94e204b..ffde355 100755 --- a/smartyplugins/function.smartlink.php +++ b/smartyplugins/function.smartlink.php @@ -108,7 +108,7 @@ function smarty_function_smartlink( $pParams, &$pSmarty=NULL ) { if( $sort_asc == $isort_mode ) { $sorticon = [ 'ipackage' => 'icons', - 'iname' => 'icon-sort-up', + 'iname' => 'view-sort-ascending', 'iexplain' => 'ascending', 'iforce' => 'icon', ]; @@ -116,7 +116,7 @@ function smarty_function_smartlink( $pParams, &$pSmarty=NULL ) { } elseif( $sort_desc == $isort_mode ) { $sorticon = [ 'ipackage' => 'icons', - 'iname' => 'icon-sort-down', + 'iname' => 'view-sort-descending', 'iexplain' => 'descending', 'iforce' => 'icon', ]; |
