fixed namespace and api_system locale call.
This commit is contained in:
parent
04f1264895
commit
ddce65b351
@ -11,11 +11,11 @@ class api {
|
|||||||
$params,$group = self::DEFAULT_GROUP,
|
$params,$group = self::DEFAULT_GROUP,
|
||||||
$strict = self::DEFAULT_STRICT,$default = self::DEFAULT_DEFAULT){
|
$strict = self::DEFAULT_STRICT,$default = self::DEFAULT_DEFAULT){
|
||||||
//Verify Class
|
//Verify Class
|
||||||
if(!class_exists($verifyclassname)){
|
if(!\class_exists($verifyclassname)){
|
||||||
throw new \SYSTEM\LOG\ERROR("Verify Class given to the api does not exist: '".$verifyclassname."'");}
|
throw new \SYSTEM\LOG\ERROR("Verify Class given to the api does not exist: '".$verifyclassname."'");}
|
||||||
|
|
||||||
//API Class
|
//API Class
|
||||||
if(!class_exists($apiclassname)){
|
if(!\class_exists($apiclassname)){
|
||||||
throw new \SYSTEM\LOG\ERROR("API Class given to the api does not exist: '".$apiclassname."'");}
|
throw new \SYSTEM\LOG\ERROR("API Class given to the api does not exist: '".$apiclassname."'");}
|
||||||
|
|
||||||
//check parameters
|
//check parameters
|
||||||
|
|||||||
@ -29,7 +29,7 @@ class api_system {
|
|||||||
return \SYSTEM\SECURITY\Security::create($username, $password_sha, $email, $locale);}
|
return \SYSTEM\SECURITY\Security::create($username, $password_sha, $email, $locale);}
|
||||||
|
|
||||||
public static function call_locale($request,$lang){
|
public static function call_locale($request,$lang){
|
||||||
return JsonResult::toString(\SYSTEM\time::getStartTime(), \SYSTEM\locale::getStrings($request, $lang));}
|
return \SYSTEM\LOG\JsonResult::toString(\SYSTEM\locale::getStrings($request, $lang));}
|
||||||
|
|
||||||
public static function call_img($cat,$id = null){
|
public static function call_img($cat,$id = null){
|
||||||
return \SYSTEM\IMG\img::get($cat, $id, true);}
|
return \SYSTEM\IMG\img::get($cat, $id, true);}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user