From 5d615a4c5ba74feb81a74b74f5a56229ba61efa6 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Tue, 26 Apr 2016 15:00:27 +0000 Subject: [PATCH] fix wrong namespaces --- api/src/Egw.php | 2 +- api/src/Framework/Template.php | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/api/src/Egw.php b/api/src/Egw.php index a16e79e240..2a23bf85b8 100644 --- a/api/src/Egw.php +++ b/api/src/Egw.php @@ -135,7 +135,7 @@ class Egw extends Egw\Base { try { - $tz = new DateTimeZone(date_default_timezone_get()); + $tz = new \DateTimeZone(date_default_timezone_get()); Config::save_value('server_timezone',$GLOBALS['egw_info']['server']['server_timezone'] = $tz->getName(),'phpgwapi'); error_log(__METHOD__."() stored server_timezone=".$GLOBALS['egw_info']['server']['server_timezone']); } diff --git a/api/src/Framework/Template.php b/api/src/Framework/Template.php index 1b02e6ca0d..f44b4b245e 100644 --- a/api/src/Framework/Template.php +++ b/api/src/Framework/Template.php @@ -18,6 +18,8 @@ namespace EGroupware\Api\Framework; +use EGroupware\Api; + /** * Old phplib templates: DO NOT USE FOR ANY NEW DEVELOPMENT, use eTemplate2! */ @@ -539,7 +541,7 @@ class Template echo "Backtrace: ".function_backtrace(2)."
\n"; break; case 'yes': - throw new egw_exception_wrong_parameter('Template Error: '.$msg); + throw new Api\Exception\WrongParameter('Template Error: '.$msg); } }