use require_once instead of require, as we seem to run into some 'cannot redeclare class'-errors

This commit is contained in:
Klaus Leithoff 2010-01-14 11:46:09 +00:00
parent 31186e976c
commit dd992dfaef
2 changed files with 8 additions and 8 deletions

View File

@ -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

View File

@ -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;
} }
} }
} }