fix wrong namespaces

This commit is contained in:
Ralf Becker 2016-04-26 15:00:27 +00:00
parent 8315cbfee0
commit 5d615a4c5b
2 changed files with 4 additions and 2 deletions

View File

@ -135,7 +135,7 @@ class Egw extends Egw\Base
{ {
try 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'); 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']); error_log(__METHOD__."() stored server_timezone=".$GLOBALS['egw_info']['server']['server_timezone']);
} }

View File

@ -18,6 +18,8 @@
namespace EGroupware\Api\Framework; namespace EGroupware\Api\Framework;
use EGroupware\Api;
/** /**
* Old phplib templates: DO NOT USE FOR ANY NEW DEVELOPMENT, use eTemplate2! * Old phplib templates: DO NOT USE FOR ANY NEW DEVELOPMENT, use eTemplate2!
*/ */
@ -539,7 +541,7 @@ class Template
echo "<b>Backtrace</b>: ".function_backtrace(2)."<br>\n"; echo "<b>Backtrace</b>: ".function_backtrace(2)."<br>\n";
break; break;
case 'yes': case 'yes':
throw new egw_exception_wrong_parameter('Template Error: '.$msg); throw new Api\Exception\WrongParameter('Template Error: '.$msg);
} }
} }