// use sprintf
This commit is contained in:
@@ -67,9 +67,9 @@ class AdminLoginControllerCore extends AdminController
|
|||||||
if ($clientIsMaintenanceOrLocal)
|
if ($clientIsMaintenanceOrLocal)
|
||||||
$this->errors[] = Tools::displayError('SSL is activated. However, your IP is allowed to enter unsecure mode for maintenance or local IP issues.');
|
$this->errors[] = Tools::displayError('SSL is activated. However, your IP is allowed to enter unsecure mode for maintenance or local IP issues.');
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$warningSslMessage = Tools::displayError('SSL is activated. Please connect using the following link to ');
|
$url = 'https://'.Tools::safeOutput(Tools::getServerName()).Tools::safeOutput($_SERVER['REQUEST_URI']);
|
||||||
$warningSslMessage .= '<a href="https://'.Tools::safeOutput(Tools::getServerName()).Tools::safeOutput($_SERVER['REQUEST_URI']).'">log into secure mode (https://)</a>';
|
$warningSslMessage = sprintf(Tools::displayError('SSL is activated. Please connect using the following link to <a href="%s">log into secure mode (https://)</a>'), $url);
|
||||||
$this->context->smarty->assign(array('warningSslMessage' => $warningSslMessage));
|
$this->context->smarty->assign(array('warningSslMessage' => $warningSslMessage));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user