Skip to content

Commit

Permalink
correct copy/paste error
Browse files Browse the repository at this point in the history
  • Loading branch information
craigh committed Jul 24, 2015
1 parent a5f0944 commit a44c91a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/system/Zikula/Module/ExtensionsModule/Api/AdminApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,7 @@ public function getfilemodules()
// e.g. "capabilities": {"user": {"route": "zikulafoomodule_user_index"} }
if (empty($moduleVersionArray['capabilities']['user']) && file_exists($bundle->getPath().'/Controller/UserController.php')) {
$caps = $moduleVersionArray['capabilities'];
$caps['admin'] = array('url' => ModUtil::url($bundle->getName(), 'user', 'index'));
$caps['user'] = array('url' => ModUtil::url($bundle->getName(), 'user', 'index'));
$moduleVersionArray['capabilities'] = $caps;
}

Expand Down Expand Up @@ -611,7 +611,7 @@ public function getfilemodules()
// Work out if user-capable
if (file_exists("$rootdir/$dir/lib/$dir/Controller/User.php")) {
$caps = $modversion['capabilities'];
$caps['admin'] = array('url' => ModUtil::url($modversion['name'], 'user', 'index'));
$caps['user'] = array('url' => ModUtil::url($modversion['name'], 'user', 'index'));
$modversion['capabilities'] = $caps;
}
}
Expand Down

0 comments on commit a44c91a

Please sign in to comment.