Commit d17e14d8 authored by Tino Goratsch's avatar Tino Goratsch

code cleanup

  -> removed some unused code
parent 515b95b3
......@@ -239,7 +239,7 @@ abstract class AbstractInstaller extends ContainerAware implements InstallerInte
foreach ($serviceIds as $serviceId) {
if (strpos($serviceId, static::MODULE_NAME . '.controller.') !== false) {
list($module, $unused, $area, $controller) = explode('.', $serviceId);
list($module,, $area, $controller) = explode('.', $serviceId);
$this->_insertAclResources($module, $controller, $area);
}
}
......
......@@ -258,7 +258,7 @@ class Index extends Core\Modules\Controller\Admin
protected function _settingsPost(array $formData)
{
try {
$this->categoriesValidator->validateSettings($formData, $this->lang);
$this->categoriesValidator->validateSettings($formData);
$data = [
'width' => (int)$formData['width'],
......
......@@ -354,7 +354,7 @@ class Index extends Core\Modules\Controller\Admin
protected function _settingsPost(array $formData)
{
try {
$this->newsValidator->validateSettings($formData, $this->lang);
$this->newsValidator->validateSettings($formData);
$data = [
'dateformat' => Core\Functions::strEncode($formData['dateformat']),
......
......@@ -60,7 +60,7 @@ class Robots extends AbstractModifier
public function process($value)
{
if (empty($this->replace) === true) {
$this->replace = $this->_setReplaceParams($this->seo);
$this->replace = $this->_setReplaceParams();
}
return str_replace($this->search, $this->replace, $value);
......
......@@ -65,7 +65,7 @@ class Index extends Core\Modules\Controller
*/
protected function _returnUpdateModuleResult($moduleName)
{
$result = $this->_updateModule($moduleName, $this->container);
$result = $this->_updateModule($moduleName);
return [
'text' => sprintf($this->lang->t('update', 'db_update_text'), ucfirst($moduleName)),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment