Skip to content

Commit b15a005

Browse files
committed
Clean up tag template
1 parent 4d07326 commit b15a005

2 files changed

Lines changed: 1 addition & 12 deletions

File tree

admin/admin_tag.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@
231231
$query="SELECT COUNT(*) FROM ".PLUGINS_TABLE." WHERE `id`='tag_groups' AND `state`='active';";
232232
list($tag_groups) = pwg_db_fetch_array( pwg_query($query) );
233233
if ($tag_groups != 1) {
234-
$template->assign('plg_warnings', ["To use this feature you need the <a href='http://piwigo.org/ext/extension_view.php?eid=781' target='_blank'>tag_groups plugin</a> to be activate"] );
234+
$page['warnings'][] = "To use this feature you need the <a href='http://piwigo.org/ext/extension_view.php?eid=781' target='_blank'>tag_groups plugin</a> to be activate";
235235
}
236236

237237
$query = 'SELECT COUNT(*) FROM '.IMAGES_TABLE.' WHERE `latitude` IS NOT NULL and `longitude` IS NOT NULL ';

admin/admin_tag.tpl

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,6 @@ Refer to the <a href="https://github.com/xbgmsharp/piwigo-openstreetmap/wiki" ta
2323
</ul>
2424
</div>
2525
26-
{if not empty($plg_warnings)}
27-
<h3>{'Warnings'|@translate}</h3>
28-
<div class="warnings">
29-
<ul>
30-
{foreach from=$plg_warnings item=warning}
31-
<li>{$warning}</li>
32-
{/foreach}
33-
</ul>
34-
</div>
35-
{/if}
36-
3726
{if isset($metadata_result)}
3827
<div class="osm_layout">
3928
<legend>Synchronization results</legend>

0 commit comments

Comments
 (0)