[BUGFIX] fix php fatal error of Upgrade wizard
authorMichael Buergi <michael.buergi@gmx.net>
Thu, 24 Mar 2011 10:29:44 +0000 (11:29 +0100)
committerJigal van Hemert <jigal@xs4all.nl>
Fri, 25 Mar 2011 22:02:06 +0000 (23:02 +0100)
commitb2c9f3936c539b2b3fb035fb2e374cc1a7b22636
tree338306d218387588206ac42e57f7aa112da3a09f
parenta1d929a857b6e914984e9bf8ada31e9140594d88
[BUGFIX] fix php fatal error of Upgrade wizard

The upgrade wizard of the install tool quits with a php fatal error if
php is configured to use registered globals.

When using registered globals, $GLOBALS['LANG'] may already be
initialized (with some string). The buggy line does not properly
initialize the language object if there is content in $GLOBALS['LANG'].
The solution changes this, so that $GLOBALS['LANG'] has to be an object
to prevent object creation. this line is also found in other places in
the typo3 source.

Change-Id: I1e553d233d6dac636d8a10a4ea5e60946e89d220
Resolves: #M17807
Reviewed-on: http://review.typo3.org/1254
Reviewed-by: Peter Niederlag
Reviewed-by: Philipp Gampe
Tested-by: Philipp Gampe
Reviewed-by: Xavier Perseguers
Reviewed-by: Jigal van Hemert
Tested-by: Jigal van Hemert
typo3/sysext/install/Classes/Updates/Base.php