forked from extern/egroupware
use require_once instead of require, as we seem to run into some 'cannot redeclare class'-errors
This commit is contained in:
parent
a8062e0975
commit
83b53cadbe
@ -254,12 +254,12 @@ class xajax
|
||||
$sLocalFolder = dirname(__FILE__);
|
||||
|
||||
//SkipAIO
|
||||
require $sLocalFolder . '/xajaxPluginManager.inc.php';
|
||||
require $sLocalFolder . '/xajaxLanguageManager.inc.php';
|
||||
require $sLocalFolder . '/xajaxArgumentManager.inc.php';
|
||||
require $sLocalFolder . '/xajaxResponseManager.inc.php';
|
||||
require $sLocalFolder . '/xajaxRequest.inc.php';
|
||||
require $sLocalFolder . '/xajaxResponse.inc.php';
|
||||
require_once $sLocalFolder . '/xajaxPluginManager.inc.php';
|
||||
require_once $sLocalFolder . '/xajaxLanguageManager.inc.php';
|
||||
require_once $sLocalFolder . '/xajaxArgumentManager.inc.php';
|
||||
require_once $sLocalFolder . '/xajaxResponseManager.inc.php';
|
||||
require_once $sLocalFolder . '/xajaxRequest.inc.php';
|
||||
require_once $sLocalFolder . '/xajaxResponse.inc.php';
|
||||
//EndSkipAIO
|
||||
|
||||
// this is the list of folders where xajax will look for plugins
|
||||
|
@ -19,7 +19,7 @@
|
||||
*/
|
||||
|
||||
//SkipAIO
|
||||
require(dirname(__FILE__) . '/xajaxPlugin.inc.php');
|
||||
require_once(dirname(__FILE__) . '/xajaxPlugin.inc.php');
|
||||
//EndSkipAIO
|
||||
|
||||
/*
|
||||
@ -112,7 +112,7 @@ class xajaxPluginManager
|
||||
$sFileName = substr($sName, 0, $nLength - 8);
|
||||
$sExtension = substr($sName, $nLength - 8, 8);
|
||||
if ('.inc.php' == $sExtension) {
|
||||
require $sFolder . '/' . $sFileName . $sExtension;
|
||||
require_once $sFolder . '/' . $sFileName . $sExtension;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user