diff --git a/api/api.php b/api/api.php index 0c08757..a86e086 100644 --- a/api/api.php +++ b/api/api.php @@ -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 diff --git a/api/api_system.php b/api/api_system.php index fe0d086..f70b96d 100644 --- a/api/api_system.php +++ b/api/api_system.php @@ -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);}