Skip to content

Commit

Permalink
tags too
Browse files Browse the repository at this point in the history
  • Loading branch information
andrepereiradasilva committed Dec 30, 2015
1 parent 68b3468 commit 2b6fc8d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion administrator/components/com_tags/models/tags.php
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ protected function getListQuery()
->where('a.alias <> ' . $db->quote('root'));

// Join over the language
$query->select('l.title AS language_title')
$query->select('l.title AS language_title, l.image AS image')
->join('LEFT', $db->quoteName('#__languages') . ' AS l ON l.lang_code = a.language');

// Join over the users for the checked out user.
Expand Down
4 changes: 2 additions & 2 deletions administrator/components/com_tags/views/tags/tmpl/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
<th width="10%" class="nowrap hidden-phone">
<?php echo JHtml::_('grid.sort', 'JGRID_HEADING_ACCESS', 'a.access', $listDirn, $listOrder); ?>
</th>
<th width="5%" class="nowrap hidden-phone">
<th width="10%" class="nowrap hidden-phone">
<?php echo JHtml::_('grid.sort', 'JGRID_HEADING_LANGUAGE', 'language', $this->state->get('list.direction'), $this->state->get('list.ordering')); ?>
</th>
<th width="1%" class="nowrap hidden-phone">
Expand Down Expand Up @@ -191,7 +191,7 @@
<?php if ($item->language == '*') : ?>
<?php echo JText::alt('JALL', 'language'); ?>
<?php else:?>
<?php echo $item->language_title ? $this->escape($item->language_title) : JText::_('JUNDEFINED'); ?>
<?php echo $item->language_title ? JHtml::_('image', 'mod_languages/' . $item->image . '.gif', $item->language_title, array('title' => $item->language_title), true) . '&nbsp;' . $this->escape($item->language_title) : JText::_('JUNDEFINED'); ?>
<?php endif;?>
</td>
<td class="hidden-phone">
Expand Down

0 comments on commit 2b6fc8d

Please sign in to comment.