mirror of
https://github.com/slawkens/myaac.git
synced 2025-10-17 19:23:27 +02:00
* new account.login view for tibiacom template
* added new indicator icons for create account, create character and change character name * attempt to fix incorrect views counter behavior (its resetting to 0 in some cases) * moved check_* functions to class Validator * from now all validators ajax requests will fire onblur instead of onkeyup * ajax requests returns now json instead of xml * added 404 response when file is not found * fixed gallery
This commit is contained in:
@@ -2363,7 +2363,7 @@ class OTS_Player extends OTS_Row_DAO
|
||||
'skill_shielding' => POT::SKILL_SHIELD,
|
||||
'skill_fishing' => POT::SKILL_FISH
|
||||
);
|
||||
if(check_number($skill))
|
||||
if(Validator::number($skill))
|
||||
$this->skills[ (int) $skill]['value'] = (int) $value;
|
||||
else {
|
||||
$this->skills[ (int) $skill_ids[$skill]]['value'] = (int) $value;
|
||||
@@ -2409,7 +2409,7 @@ class OTS_Player extends OTS_Row_DAO
|
||||
'skill_fishing' => POT::SKILL_FISH
|
||||
);
|
||||
|
||||
if(check_number($skill))
|
||||
if(Validator::number($skill))
|
||||
$this->skills[ (int) $skill]['tries'] = (int) $tries;
|
||||
else {
|
||||
$this->skills[ (int) $skill_ids[$skill]]['tries'] = (int) $tries;
|
||||
|
Reference in New Issue
Block a user