[eGroupWare-svn] r55854 - in /trunk/egroupware/api/src: Egw.php Framework/Template.php

[email protected]
Newsgroups gmane.comp.web.egroupware.cvs
Message-ID <[email protected]>
Author: ralfbecker
Date: Tue Apr 26 17:00:27 2016
New Revision: 55854

URL: http://svn.stylite.de/viewvc/egroupware?rev=55854&view=rev
Log:
fix wrong namespaces

Modified:
    trunk/egroupware/api/src/Egw.php
    trunk/egroupware/api/src/Framework/Template.php

Modified: trunk/egroupware/api/src/Egw.php
URL: http://svn.stylite.de/viewvc/egroupware/trunk/egroupware/api/src/Egw.php?rev=55854&r1=55853&r2=55854&view=diff
==============================================================================
--- trunk/egroupware/api/src/Egw.php (original)
+++ trunk/egroupware/api/src/Egw.php Tue Apr 26 17:00:27 2016
@@ -135,7 +135,7 @@
 		{
 			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']);
 			}

Modified: trunk/egroupware/api/src/Framework/Template.php
URL: http://svn.stylite.de/viewvc/egroupware/trunk/egroupware/api/src/Framework/Template.php?rev=55854&r1=55853&r2=55854&view=diff
==============================================================================
--- trunk/egroupware/api/src/Framework/Template.php (original)
+++ trunk/egroupware/api/src/Framework/Template.php Tue Apr 26 17:00:27 2016
@@ -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 @@
 				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);
 		}
 	}
 


------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.