Skip to content

Commit

Permalink
Fix methods conflict in Options controller
Browse files Browse the repository at this point in the history
  • Loading branch information
giuscris committed Oct 13, 2018
1 parent 0eb1b1a commit c8fc891
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions admin/src/Admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -202,12 +202,12 @@ function (RouteParams $params) {
$this->router->add(
array('GET', 'POST'),
'/options/system/',
array(new Controllers\Options(), 'system')
array(new Controllers\Options(), 'systemOptions')
);
$this->router->add(
array('GET', 'POST'),
'/options/site/',
array(new Controllers\Options(), 'site')
array(new Controllers\Options(), 'siteOptions')
);
$this->router->add(
'/options/updates/',
Expand Down
4 changes: 2 additions & 2 deletions admin/src/Controllers/Options.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public function index()
$this->redirect('/options/system/', 302, true);
}

public function system()
public function systemOptions()
{
$this->ensurePermission('options.system');

Expand Down Expand Up @@ -51,7 +51,7 @@ public function system()
));
}

public function site()
public function siteOptions()
{
$this->ensurePermission('options.site');

Expand Down

0 comments on commit c8fc891

Please sign in to comment.