* when denied, use the my module language.
This commit is contained in:
@@ -417,7 +417,7 @@ class user extends control
|
||||
$this->view->denyPage = $this->referer; // The denied page.
|
||||
$this->view->refererBeforeDeny = $refererBeforeDeny; // The referer of the denied page.
|
||||
$this->app->loadLang($module);
|
||||
$this->app->loadLang('index');
|
||||
$this->app->loadLang('my');
|
||||
$this->display();
|
||||
exit;
|
||||
}
|
||||
|
||||
@@ -20,7 +20,7 @@ include '../../common/view/header.lite.html.php';
|
||||
|
||||
printf($lang->user->errorDeny, $moduleName, $methodName);
|
||||
echo "<br />";
|
||||
echo html::a($this->createLink($config->default->module), $lang->index->common);
|
||||
echo html::a($this->createLink($config->default->module), $lang->my->common);
|
||||
if($refererBeforeDeny) echo html::a(helper::safe64Decode($refererBeforeDeny), $lang->user->goback);
|
||||
echo html::a($this->createLink('user', 'logout', "referer=" . helper::safe64Encode($denyPage)), $lang->user->relogin);
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user