Skip to content

Commit

Permalink
Fixed the URLs for Hathor
Browse files Browse the repository at this point in the history
  • Loading branch information
roland-d committed Jul 4, 2017
1 parent e3cfcc8 commit 7bb7af1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions administrator/components/com_redirect/views/links/view.html.php
Expand Up @@ -77,6 +77,16 @@ public function display($tpl = null)
'class="alert-link" data-toggle="modal" id="title-' . $this->redirectPluginId . '"'
);

// To be removed in Joomla 4
if (JFactory::getApplication()->getTemplate() === 'hathor')
{
$link = JHtml::_(
'link',
JRoute::_('index.php?option=com_plugins&task=plugin.edit&extension_id=' . RedirectHelper::getRedirectPluginId()),
JText::_('COM_REDIRECT_SYSTEM_PLUGIN')
);
}

if ($this->enabled && !$this->collect_urls_enabled)
{
$app->enqueueMessage(JText::sprintf('COM_REDIRECT_COLLECT_MODAL_URLS_DISABLED', JText::_('COM_REDIRECT_PLUGIN_ENABLED'), $link), 'notice');
Expand Down
Expand Up @@ -145,7 +145,7 @@
<?php if ($this->collect_urls_enabled) : ?>
<span class="enabled"><?php echo JText::_('COM_REDIRECT_COLLECT_URLS_ENABLED'); ?></span>
<?php else : ?>
<span class="enabled"><?php echo JText::sprintf('COM_REDIRECT_COLLECT_URLS_DISABLED', 'index.php?option=com_plugins&filter_search=redirect'); ?></span>
<span class="enabled"><?php echo JText::sprintf('COM_REDIRECT_COLLECT_URLS_DISABLED', 'index.php?option=com_plugins&task=plugin.edit&extension_id=' . RedirectHelper::getRedirectPluginId()); ?></span>
<?php endif; ?>
<?php else : ?>
<span class="disabled"><?php echo JText::_('COM_REDIRECT_PLUGIN_DISABLED'); ?></span>
Expand Down

0 comments on commit 7bb7af1

Please sign in to comment.