MINOR Fixed PHP strict standard where non-variables cannot be passed by reference

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.4@113968 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sean Harvey 2010-11-20 05:32:32 +00:00 committed by Sam Minnee
parent 8381858d58
commit 9367dc40a1

View File

@ -49,7 +49,8 @@ class DatabaseAdapterRegistry {
? $config['missingExtensionText']
: 'The PHP extension is missing, please enable or install it.';
$moduleName = array_shift(explode('/', $config['helperPath']));
$path = explode('/', $config['helperPath']);
$moduleName = array_shift($path);
$missingModuleText = isset($config['missingModuleText'])
? $config['missingModuleText']
: 'The SilverStripe module, '.$moduleName.', is missing or incomplete. Please <a href="http://silverstripe.org/modules">download it</a>.';