Skip to content

Commit

Permalink
fixes #1440 if allow notation isn't checked the notation tab is hidden
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthieuLP committed Jul 23, 2021
1 parent f032a9f commit b9394d9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions admin.php
Expand Up @@ -200,6 +200,7 @@
'U_UPDATES' => $link_start.'updates',
'ADMIN_PAGE_TITLE' => 'Piwigo Administration Page',
'U_SHOW_TEMPLATE_TAB' => $conf['show_template_in_side_menu'],
'SHOW_RATING' => $conf['rate'],
)
);

Expand Down
4 changes: 3 additions & 1 deletion admin/themes/default/template/admin.tpl
Expand Up @@ -53,7 +53,9 @@ jQuery(document).ready(function() {
<dd>
<ul>
<li><a href="{$U_ADD_PHOTOS}"><i class="icon-plus-circled"></i>{'Add'|@translate}</a></li>
<li><a href="{$U_RATING}"><i class="icon-star"></i>{'Rating'|@translate}</a></li>
{if $SHOW_RATING}
<li><a href="{$U_RATING}"><i class="icon-star"></i>{'Rating'|@translate}</a></li>
{/if}
<li><a href="{$U_TAGS}"><i class="icon-tags"></i>{'Tags'|@translate}</a></li>
<li><a href="{$U_RECENT_SET}"><i class="icon-clock"></i>{'Recent photos'|@translate}</a></li>
<li><a href="{$U_BATCH}"><i class="icon-th"></i>{'Batch Manager'|@translate}</a></li>
Expand Down

0 comments on commit b9394d9

Please sign in to comment.