fixed namespace and api_system locale call.

This commit is contained in:
Ulf Gebhardt 2013-12-09 13:55:00 +01:00
parent 04f1264895
commit ddce65b351
2 changed files with 3 additions and 3 deletions

View File

@ -11,11 +11,11 @@ class api {
$params,$group = self::DEFAULT_GROUP,
$strict = self::DEFAULT_STRICT,$default = self::DEFAULT_DEFAULT){
//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."'");}
//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."'");}
//check parameters

View File

@ -29,7 +29,7 @@ class api_system {
return \SYSTEM\SECURITY\Security::create($username, $password_sha, $email, $locale);}
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){
return \SYSTEM\IMG\img::get($cat, $id, true);}