From 3bd9b98fd5a45d9b89be1dd4787026933e69b4a2 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Sun, 1 May 2016 14:18:56 +0000 Subject: [PATCH] fix PHP Fatal error: Cannot use accounts as accounts because the name is already in use under PHP 5.4 --- api/src/Egw.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/src/Egw.php b/api/src/Egw.php index de721dd05d..257d9f2660 100644 --- a/api/src/Egw.php +++ b/api/src/Egw.php @@ -16,7 +16,7 @@ namespace EGroupware\Api; // explicitly list old, non-namespaced classes // they are only used, if phpgwapi is installed -use accounts; +use accounts as egw_accounts; use egw_session; /** @@ -150,7 +150,7 @@ class Egw extends Egw\Base // if phpgwapi exists we prefer accounts and egw_session, as they have some deprecated methods if (file_exists(EGW_SERVER_ROOT.'/phpgwapi')) { - $this->accounts = new accounts(); + $this->accounts = new egw_accounts(); /* Do not create the session object if called by the sessions class. This way * we ensure the correct db based on the user domain. */