[TYPO3-core] RFC: #9318: Enhance and fix tslib_eidtools
Martin Kutschker
masi-no at spam-typo3.org
Wed Sep 10 09:19:40 CEST 2008
Dmitry Dulepov [typo3] schrieb:
> Hi!
>
> This is SVN patch request.
>
> Type: feature/bugfix
>
> Branches: trunk
>
> BT reference: http://bugs.typo3.org/view.php?id=9318
>
> Problem: Current implementation of tslib_eidtools has certain flows.
> Firsts, it misses a function to initialize $GLOBALS['LANG']. Thus every
> developer will have to do it manually. The solution is to add such
> function. The next problem is that TCA is not available by default in
> eID. So two new functions are added to include TCA for loaded extensions
> or include TCA for the particular extension (this will provide extra
> performance benefits). Next if eID script uses connectDB and
> initFeUsers, database connection will be initialized twice. The patch
> solves the problem. And finally there is a small performance enhancement
> by using cached instance of TSFE.
> Solution: the attached patch.
connectDB() never sets it's static variable $dbConnected to true. I
guess you wanted to write (assuming it reportes success with a boolean):
$dbConnected = $GLOBALS['TYPO3_DB']->connectDB();
Masi
More information about the TYPO3-team-core
mailing list