Commit a3799343 authored by Karsten Dambekalns's avatar Karsten Dambekalns
Browse files

Changed require to require_once to fix bug #958.


git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@624 709f56b5-9817-0410-a4d7-c38de5d9e867
parent e3cf73c8
......@@ -74,14 +74,14 @@ define('TYPO3_mainDir', 'typo3/'); // This is the directory of the backend admi
// ******************
// Including config
// ******************
require(PATH_t3lib.'class.t3lib_div.php');
require(PATH_t3lib.'class.t3lib_extmgm.php');
require_once(PATH_t3lib.'class.t3lib_div.php');
require_once(PATH_t3lib.'class.t3lib_extmgm.php');
require(PATH_t3lib.'config_default.php');
if (!defined ('TYPO3_db')) die ('The configuration file was not included.');
if (!$TYPO3_CONF_VARS['GFX']['image_processing']) die ('ImageProcessing was disabled!');
require(PATH_t3lib.'class.t3lib_db.php'); // The database library
require_once(PATH_t3lib.'class.t3lib_db.php'); // The database library
$TYPO3_DB = t3lib_div::makeInstance('t3lib_DB');
......
......@@ -78,8 +78,8 @@ $TT->push('','Script start');
// Mandatory libraries included
// *********************
$TT->push('Include class t3lib_db, t3lib_div, t3lib_extmgm','');
require(PATH_t3lib.'class.t3lib_div.php');
require(PATH_t3lib.'class.t3lib_extmgm.php');
require_once(PATH_t3lib.'class.t3lib_div.php');
require_once(PATH_t3lib.'class.t3lib_extmgm.php');
$TT->pull();
......@@ -88,11 +88,11 @@ $TT->pull();
// Include configuration
// **********************
$TT->push('Include config files','');
require(PATH_t3lib.'config_default.php');
require_once(PATH_t3lib.'config_default.php');
if (!defined ('TYPO3_db')) die ('The configuration file was not included.'); // the name of the TYPO3 database is stored in this constant. Here the inclusion of the config-file is verified by checking if this var is set.
if (!t3lib_extMgm::isLoaded('cms')) die('<strong>Error:</strong> The main frontend extension "cms" was not loaded. Enable it in the extension manager in the backend.');
require(PATH_t3lib.'class.t3lib_db.php');
require_once(PATH_t3lib.'class.t3lib_db.php');
$TYPO3_DB = t3lib_div::makeInstance('t3lib_DB');
$CLIENT = t3lib_div::clientInfo(); // Set to the browser: net / msie if 4+ browsers
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment