Updating files in modules/cms
This commit is contained in:
parent
4fa6db3bd5
commit
230a7377cf
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -170,4 +170,4 @@ return [
|
|||
'manage_partials' => 'Gestionar parciales',
|
||||
'manage_themes' => 'Gestionar plantilla'
|
||||
]
|
||||
];
|
||||
];
|
||||
|
|
|
|||
Loading…
Reference in New Issue