Misc/Fixup

* missed const from f77d676a19
 * missing start of string anchor in Util::checkNumeric
This commit is contained in:
Sarjuuk
2024-06-02 01:23:42 +02:00
parent bc7d561da2
commit efab0bad32
2 changed files with 2 additions and 2 deletions

View File

@@ -996,7 +996,7 @@ abstract class Util
}
// is int string (is_numeric can only handle strings in base 10)
if (is_numeric($number) || preg_match('/0[xb]?\d+/', $number))
if (is_numeric($number) || preg_match('/^0[xb]?\d+/', $number))
{
$number = intVal($number, 0); // 'base 0' auto-detects base
if ($typeCast == NUM_CAST_INT)

View File

@@ -677,7 +677,7 @@ class Lang
switch ($fmt)
{
case self::FMT_HTML:
return '<span class="icontiny" style="background-image: url('.STATIC_URL.'/images/wow/icons/tiny/'.Util::lower($iconName).'.gif)">';
return '<span class="icontiny" style="background-image: url('.Cfg::get('STATIC_URL').'/images/wow/icons/tiny/'.Util::lower($iconName).'.gif)">';
case self::FMT_MARKUP:
return '[icon name='.Util::lower($iconName).']';
case self::FMT_RAW: