Bug #19296 ยป 9302.diff
typo3/sysext/cms/tslib/class.tslib_eidtools.php (working copy) | ||
---|---|---|
*
|
||
* @return object Frontend User object (usually known as TSFE->fe_user)
|
||
*/
|
||
function initFeUser() {
|
||
global $TYPO3_CONF_VARS;
|
||
public static function initFeUser() {
|
||
// Include classes necessary for initializing frontend user:
|
||
// We will use tslib_fe to do that:
|
||
require_once(PATH_tslib.'class.tslib_fe.php');
|
||
... | ... | |
// Make new instance of TSFE object for initializing user:
|
||
$temp_TSFEclassName = t3lib_div::makeInstanceClassName('tslib_fe');
|
||
$TSFE = new $temp_TSFEclassName($TYPO3_CONF_VARS,0,0);
|
||
$TSFE = new $temp_TSFEclassName($GLOBALS['TYPO3_CONF_VARS'],0,0);
|
||
$TSFE->connectToDB();
|
||
// Initialize FE user:
|
||
... | ... | |
*
|
||
* @return void
|
||
*/
|
||
function connectDB() {
|
||
global $TYPO3_DB;
|
||
public static function connectDB() {
|
||
/* @var $TYPO3_DB t3lib_db */
|
||
$TYPO3_DB->connectDB();
|
||
$GLOBALS['TYPO3_DB']->connectDB();
|
||
}
|
||
}
|
||
?>
|
||
?>
|