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);
}
}