summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLester Caine <lester@lsces.co.uk>2026-06-05 11:49:55 +0100
committerLester Caine <lester@lsces.co.uk>2026-06-05 11:49:55 +0100
commitb7499cdda11e87e89957639b6aaf93fba47d5043 (patch)
treeff4e7aee7b6628c3f1346f946391a6fceab615b1
parentdfe21f81d3e474fd5ccab2e7cca7d9f9fa4c4ad5 (diff)
downloadthemes-b7499cdda11e87e89957639b6aaf93fba47d5043.tar.gz
themes-b7499cdda11e87e89957639b6aaf93fba47d5043.tar.bz2
themes-b7499cdda11e87e89957639b6aaf93fba47d5043.zip
Add SVG to biticon_first_match default extension search order
SVG now checked before PNG/GIF/JPG for all package icon lookups, enabling SVG flag files (and future SVG package icons) to be served without an explicit extension override in every {biticon} call. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
-rwxr-xr-xsmartyplugins/function.biticon.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/smartyplugins/function.biticon.php b/smartyplugins/function.biticon.php
index adc4edb..a6422b1 100755
--- a/smartyplugins/function.biticon.php
+++ b/smartyplugins/function.biticon.php
@@ -18,7 +18,7 @@ use Bitweaver\KernelTools;
* @access public
* @return string|bool Icon name with extension on success, false on failure
*/
-function biticon_first_match( $pDir, $pFilename, $pExtensions = ['png', 'gif', 'jpg'] ) {
+function biticon_first_match( $pDir, $pFilename, $pExtensions = ['svg', 'png', 'gif', 'jpg'] ) {
if( is_dir( $pDir )) {
foreach( $pExtensions as $ext ) {
if( is_file( $pDir.$pFilename.'.'.$ext ) ) {