Skip to content

Commit

Permalink
Update Controller.php
Browse files Browse the repository at this point in the history
  • Loading branch information
vitalyiegorov committed Jan 26, 2017
1 parent fea6b21 commit 6aec611
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Controller.php
Expand Up @@ -122,7 +122,7 @@ public function __async_change($groupID, $rightID)
* @param boolean $securityResult
* @return boolean True if security passed
*/
public function handle($core, &$securityResult)
public function handle(&$core, &$securityResult)
{
// Remove URL base from current URL, split by '/'
$parts = explode(__SAMSON_BASE__, $_SERVER['REQUEST_URI']);
Expand Down Expand Up @@ -253,6 +253,8 @@ public function parseGroupRights($groupID)
/** Application initialization */
public function init(array $params = array())
{
$this->i18n = $this->i18n ?? $this->system->module('i18n');

// Find all applications that needs access rights to it
$accessibleApplications = array(
'template' => $this->i18n->translate('Главная страница'), // Main application
Expand Down

0 comments on commit 6aec611

Please sign in to comment.