mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 14:41:29 +01:00
fix wrong namespaces
This commit is contained in:
parent
8315cbfee0
commit
5d615a4c5b
@ -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']);
|
||||
}
|
||||
|
@ -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 "<b>Backtrace</b>: ".function_backtrace(2)."<br>\n";
|
||||
break;
|
||||
case 'yes':
|
||||
throw new egw_exception_wrong_parameter('Template Error: '.$msg);
|
||||
throw new Api\Exception\WrongParameter('Template Error: '.$msg);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user