Permalink
Browse files

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
  • Loading branch information...
1 parent edc7a46 commit e340ccb1add2b6563ef25142ffd823a6586ec067 @sminnee sminnee committed Dec 5, 2010
Showing with 2 additions and 1 deletion.
  1. +2 −1 dev/install/DatabaseAdapterRegistry.php
View
3 dev/install/DatabaseAdapterRegistry.php
@@ -49,7 +49,8 @@ static function register($config) {
? $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>.';

0 comments on commit e340ccb

Please sign in to comment.