| Age | Commit message (Collapse) | Author | Files | Lines |
|
PHP 8.3+ throws DateMalformedStringException instead of a warning when
DateTime::__construct() receives an invalid string (e.g. '---' from
corrupted EXIF metadata). The existing empty() guard doesn't catch
non-empty garbage values.
Wrap the DateTime construction in try/catch and add a strtotime() pre-check
on the fallback path so both code paths return '' for invalid input.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
|
istyle=flag scales height via isize (small=16, medium=24, large=32) and
derives width as (height/3)*4. istyle is already in the cache hash so no
further cache key changes needed. Also reverts width/height from $ommit
so they remain available as pass-through HTML attributes.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
|
Add width/height to omit list so they don't double-output; SVG size code
now uses them if provided, falling back to svgSizes[isize] for square icons.
Allows flag icons to be rendered at 32×24 (4:3) rather than forced square.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
|
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>
|
|
All iconset icons (ipackage=icons) now served from scalable/ as SVGs.
ipath (/small/, /medium/, /large/) is preserved only for cache key
differentiation and SVG width/height calculation; no PNG directory
lookups are performed.
Four icons remapped to SVG equivalents that exist in tango/scalable/:
dialog-cancel -> process-stop (newsletters: unsubscribed)
emblem-downloads -> network-receive (fisheye: download file)
emblem-shared -> emblem-symbolic-link (boards: moved topic)
mail-mark-important -> emblem-important (messages: flagged)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
|
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>
|
|
ilocation=menu and ilocation=quicktag were hardcoded to small/,
ignoring the site_icon_size config. Now all locations use the config
value (or explicit isize= if provided), so changing Default Icon Size
in Theme Settings affects the entire site uniformly.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
|
Conversion script accidentally renamed it to smarty_function_biticon,
causing a fatal redeclaration clash with function.biticon.php.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
|
Replace all {booticon iname="icon-*"} and {booticon iname="fa-*"} calls with
{biticon ipackage="icons" iname="<freedesktop-name>"} using the tango iconset.
Mapping covers ~70 distinct old names to tango equivalents (edit-delete,
document-properties, go-next, lock, internet-mail, etc.).
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
|
iconset with SVG support
- function.biticon.php: look in util/iconsets/ (moved from config/); add SVG fallback
via scalable/ directory; biticon_first_match accepts optional extensions param;
isize (small/medium/large) mapped to 16/24/32px for SVG width+height; isize added
to ommit list so it never leaks as an HTML attribute
- admin_themes_inc.php: iconset path updated to UTIL_PKG_PATH; biticon_sizes expanded
to small (16px) / medium (24px) / large (32px)
- admin_themes_manager.php: iconset path updated to UTIL_PKG_PATH
- admin_themes_manager.tpl: replace stale Gnome/KDE links with Tango3/freedesktop refs
- icon_browser.php: icon_fetcher now uses scalable/ SVGs as primary name source,
supplements with large/ PNGs; all iconset paths updated to UTIL_PKG_PATH
- icon_browser.tpl: three clean size columns (small/medium/large) using isize=
instead of sloppy iname path embedding; help text updated
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
|
|
|
|
|
|
|
direct from php
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
->getParsedData & ::filterDataHash
|
|
|