MINOR Fixed PHP strict standard where non-variables cannot be passed by reference (from r113968)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@114541 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sam Minnee 2010-12-05 08:39:31 +00:00
parent edc7a46d21
commit e340ccb1ad

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>.';