Fixed #183
This commit is contained in:
parent
708bddfe04
commit
7865238e89
@ -5,7 +5,7 @@
|
|||||||
* having placeholders for user id and name that will be replaced with current user's
|
* having placeholders for user id and name that will be replaced with current user's
|
||||||
* data right before echoing the menu.
|
* data right before echoing the menu.
|
||||||
*/
|
*/
|
||||||
$key = 'menu.'.current_user()->level;
|
$key = 'menu.' . Rails::application()->I18n()->locale() . '.'.current_user()->level;
|
||||||
$menu = Rails::cache()->read($key);
|
$menu = Rails::cache()->read($key);
|
||||||
|
|
||||||
if (!$menu) :
|
if (!$menu) :
|
||||||
@ -208,9 +208,6 @@
|
|||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<li class="static"><?= $this->linkTo($this->t('.more'), ['controller' => 'static', 'action' => 'more']) ?>
|
<li class="static"><?= $this->linkTo($this->t('.more'), ['controller' => 'static', 'action' => 'more']) ?>
|
||||||
</li>
|
</li>
|
||||||
<li class="has-mail">
|
<li class="has-mail">
|
||||||
|
Reference in New Issue
Block a user