From 7868b684cd3424d512cc8bbd1caf67701bded06c Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 31 Aug 2011 07:50:28 +0000 Subject: [PATCH] using php5 constructors --- phpgwapi/inc/class.egw_framework.inc.php | 2 +- phpgwapi/templates/idots/class.idots_framework.inc.php | 5 ++--- phpgwapi/templates/jerryr/class.jerryr_framework.inc.php | 9 +++++---- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/phpgwapi/inc/class.egw_framework.inc.php b/phpgwapi/inc/class.egw_framework.inc.php index b100c9efb2..21acd93eaf 100644 --- a/phpgwapi/inc/class.egw_framework.inc.php +++ b/phpgwapi/inc/class.egw_framework.inc.php @@ -1,6 +1,6 @@ rewrite in 12/2006 diff --git a/phpgwapi/templates/idots/class.idots_framework.inc.php b/phpgwapi/templates/idots/class.idots_framework.inc.php index a318915497..d730fe0571 100644 --- a/phpgwapi/templates/idots/class.idots_framework.inc.php +++ b/phpgwapi/templates/idots/class.idots_framework.inc.php @@ -1,6 +1,6 @@ rewrite in 12/2006 @@ -62,8 +62,7 @@ class idots_framework extends egw_framework */ function __construct($template='idots') { - $GLOBALS['egw_info']['flags']['include_xajax'] = True; - $this->egw_framework($template); // call the constructor of the extended class + parent::__construct($template); // call the constructor of the extended class $this->tplsav2 = new tplsavant2(); $this->tplsav2->set_tpl_path(EGW_SERVER_ROOT.SEP.'phpgwapi'.SEP.'templates'.SEP.'idots'); diff --git a/phpgwapi/templates/jerryr/class.jerryr_framework.inc.php b/phpgwapi/templates/jerryr/class.jerryr_framework.inc.php index 645bb07dea..6966c5c139 100644 --- a/phpgwapi/templates/jerryr/class.jerryr_framework.inc.php +++ b/phpgwapi/templates/jerryr/class.jerryr_framework.inc.php @@ -1,8 +1,9 @@ * @author Ralf Becker rewrite in 12/2006 * @author Pim Snel author of the idots template set * @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License @@ -25,9 +26,9 @@ class jerryr_framework extends idots_framework * @param string $template='jerryr' * @return jerryr_framework */ - function jerryr_framework($template='jerryr') + function __construct($template='jerryr') { - $this->idots_framework($template); + parent::__construct($template); } function topmenu(array &$vars,array &$apps)