Skip to content

Commit

Permalink
do the same for hathor admin login page
Browse files Browse the repository at this point in the history
  • Loading branch information
andrepereiradasilva committed Apr 2, 2016
1 parent 8cd6132 commit 2f1fedc
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion administrator/templates/hathor/login.php
Expand Up @@ -13,6 +13,11 @@
$lang = JFactory::getLanguage();
$doc = JFactory::getDocument();

// Gets the FrontEnd Main page Uri
$frontEndUri = JUri::getInstance(JUri::root());
$frontEndUri->setScheme(((int) JFactory::getApplication()->get('force_ssl', 0) === 2) ? 'https' : 'http');
$mainPageUri = $frontEndUri->toString();

// jQuery needed by template.js
JHtml::_('jquery.framework');

Expand Down Expand Up @@ -112,7 +117,7 @@
<div class="login-inst">
<p><?php echo JText::_('COM_LOGIN_VALID') ?></p>
<div id="lock"></div>
<a href="<?php echo JUri::root(); ?>" target="_blank"><?php echo JText::_('COM_LOGIN_RETURN_TO_SITE_HOME_PAGE'); ?></a>
<a href="<?php echo $mainPageUri; ?>" target="_blank"><?php echo JText::_('COM_LOGIN_RETURN_TO_SITE_HOME_PAGE'); ?></a>
</div>
<!-- Login Component -->
<div class="login-box">
Expand Down

0 comments on commit 2f1fedc

Please sign in to comment.