Updating files in modules/cms

This commit is contained in:
Stefan Talen 2014-10-11 14:33:40 +02:00
parent 4fa6db3bd5
commit 230a7377cf
3 changed files with 6 additions and 4 deletions

View File

@ -259,7 +259,7 @@ class CmsCompoundObject extends CmsObject
*/
public function getComponent($componentName)
{
if (!($componentSection = $this->hasComponent($componentName)))
if (!($componentSection = $this->hasComponent($componentName))) {
return null;
}
@ -277,7 +277,7 @@ class CmsCompoundObject extends CmsObject
*/
public function hasComponent($componentName)
{
foreach ($this->settings['components'] as $sectionName=>$values) {
foreach ($this->settings['components'] as $sectionName => $values) {
if ($sectionName == $componentName) {
return $componentName;
}

View File

@ -54,7 +54,9 @@ class ComponentHelpers
}
if (is_array($value)) {
array_walk($property[$name], function(&$_value, $key) { $_value = Lang::get($_value); });
array_walk($property[$name], function (&$_value, $key) {
$_value = Lang::get($_value);
});
} else {
$property[$name] = Lang::get($value);
}

View File

@ -170,4 +170,4 @@ return [
'manage_partials' => 'Gestionar parciales',
'manage_themes' => 'Gestionar plantilla'
]
];
];