mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-25 01:13:25 +01:00
use require_once instead of require, as we seem to run into some 'cannot redeclare class'-errors
This commit is contained in:
parent
31186e976c
commit
dd992dfaef
@ -254,12 +254,12 @@ class xajax
|
|||||||
$sLocalFolder = dirname(__FILE__);
|
$sLocalFolder = dirname(__FILE__);
|
||||||
|
|
||||||
//SkipAIO
|
//SkipAIO
|
||||||
require $sLocalFolder . '/xajaxPluginManager.inc.php';
|
require_once $sLocalFolder . '/xajaxPluginManager.inc.php';
|
||||||
require $sLocalFolder . '/xajaxLanguageManager.inc.php';
|
require_once $sLocalFolder . '/xajaxLanguageManager.inc.php';
|
||||||
require $sLocalFolder . '/xajaxArgumentManager.inc.php';
|
require_once $sLocalFolder . '/xajaxArgumentManager.inc.php';
|
||||||
require $sLocalFolder . '/xajaxResponseManager.inc.php';
|
require_once $sLocalFolder . '/xajaxResponseManager.inc.php';
|
||||||
require $sLocalFolder . '/xajaxRequest.inc.php';
|
require_once $sLocalFolder . '/xajaxRequest.inc.php';
|
||||||
require $sLocalFolder . '/xajaxResponse.inc.php';
|
require_once $sLocalFolder . '/xajaxResponse.inc.php';
|
||||||
//EndSkipAIO
|
//EndSkipAIO
|
||||||
|
|
||||||
// this is the list of folders where xajax will look for plugins
|
// this is the list of folders where xajax will look for plugins
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
//SkipAIO
|
//SkipAIO
|
||||||
require(dirname(__FILE__) . '/xajaxPlugin.inc.php');
|
require_once(dirname(__FILE__) . '/xajaxPlugin.inc.php');
|
||||||
//EndSkipAIO
|
//EndSkipAIO
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -112,7 +112,7 @@ class xajaxPluginManager
|
|||||||
$sFileName = substr($sName, 0, $nLength - 8);
|
$sFileName = substr($sName, 0, $nLength - 8);
|
||||||
$sExtension = substr($sName, $nLength - 8, 8);
|
$sExtension = substr($sName, $nLength - 8, 8);
|
||||||
if ('.inc.php' == $sExtension) {
|
if ('.inc.php' == $sExtension) {
|
||||||
require $sFolder . '/' . $sFileName . $sExtension;
|
require_once $sFolder . '/' . $sFileName . $sExtension;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user