mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
Misc/Fixup
* missed const from f77d676a19
* missing start of string anchor in Util::checkNumeric
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user