[Fusionforge-commits] r11835 - branches/Branch_5_1/src/common/include

Roland Mas lolando at libremir.placard.fr.eu.org
Sat Dec 18 17:26:26 CET 2010


Author: lolando
Date: 2010-12-18 17:26:26 +0100 (Sat, 18 Dec 2010)
New Revision: 11835

Modified:
   branches/Branch_5_1/src/common/include/Group.class.php
Log:
Delay loading of WidgetLayoutManager.class.php until needed

Modified: branches/Branch_5_1/src/common/include/Group.class.php
===================================================================
--- branches/Branch_5_1/src/common/include/Group.class.php	2010-12-18 12:46:58 UTC (rev 11834)
+++ branches/Branch_5_1/src/common/include/Group.class.php	2010-12-18 16:26:26 UTC (rev 11835)
@@ -40,7 +40,6 @@
 require_once $gfcommon.'survey/SurveyQuestionFactory.class.php';
 require_once $gfcommon.'include/gettext.php';
 require_once $gfcommon.'include/GroupJoinRequest.class.php';
-require_once $gfcommon.'widget/WidgetLayoutManager.class.php';
 
 //the license_id of "Other/proprietary" license
 define('GROUP_LICENSE_OTHER',126);
@@ -2391,6 +2390,7 @@
 	 *	@access public
 	 */
 	function approve(&$user) {
+		require_once $gfcommon.'widget/WidgetLayoutManager.class.php';
 
 		if ($this->getStatus()=='A') {
 			$this->setError(_("Group already active"));




More information about the Fusionforge-commits mailing list