diff --git a/src/PlaygroundGallery/Options/ModuleOptions.php b/src/PlaygroundGallery/Options/ModuleOptions.php index 2c2c68a..1edcb5d 100644 --- a/src/PlaygroundGallery/Options/ModuleOptions.php +++ b/src/PlaygroundGallery/Options/ModuleOptions.php @@ -6,15 +6,5 @@ class ModuleOptions extends AbstractOptions { - protected $languagePath = '/../../../language/'; - - public function setLanguagePath($languagePath) - { - $this->languagePath = $languagePath; - } - - public function getLanguagePath() - { - return $this->languagePath; - } + } \ No newline at end of file diff --git a/src/PlaygroundGallery/Service/Category.php b/src/PlaygroundGallery/Service/Category.php index babbbd0..99e3084 100644 --- a/src/PlaygroundGallery/Service/Category.php +++ b/src/PlaygroundGallery/Service/Category.php @@ -85,6 +85,8 @@ public function edit(array $data, $category) $form->setData($data); + $category->setName($data['name']); + if (!$form->isValid()) { return false; }