Change modulePath setting to module_path

fixes #7694
This commit is contained in:
Johannes Meyer 2014-11-17 10:10:08 +01:00
parent 8d4089c22a
commit 812f9af949
3 changed files with 3 additions and 3 deletions

View File

@ -31,7 +31,7 @@ class ApplicationConfigForm extends Form
{
$this->addElement(
'text',
'global_modulePath',
'global_module_path',
array(
'label' => t('Module Path'),
'required' => true,

View File

@ -41,7 +41,7 @@ class GeneralConfigForm extends ConfigForm
{
$sections = array();
foreach ($this->getValues() as $sectionAndPropertyName => $value) {
list($section, $property) = explode('_', $sectionAndPropertyName);
list($section, $property) = explode('_', $sectionAndPropertyName, 2);
if (! isset($sections[$section])) {
$sections[$section] = array();
}

View File

@ -372,7 +372,7 @@ abstract class ApplicationBootstrap
$this->moduleManager = new ModuleManager(
$this,
$this->configDir . '/enabledModules',
explode(':', $this->config->fromSection('global', 'modulePath', $this->baseDir . '/modules'))
explode(':', $this->config->fromSection('global', 'module_path', $this->baseDir . '/modules'))
);
return $this;
}