From ddce65b351b68192e6ed2837d27c6eb0d65548f5 Mon Sep 17 00:00:00 2001 From: rylon Date: Mon, 9 Dec 2013 13:55:00 +0100 Subject: [PATCH] fixed namespace and api_system locale call. --- api/api.php | 4 ++-- api/api_system.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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);}