Fix name of function
This commit is contained in:
parent
cec96b33ae
commit
4b3cd947f2
@ -187,14 +187,14 @@ print '<td class="center"> </td>'."\n";
|
|||||||
print '<td class="right">'."\n";
|
print '<td class="right">'."\n";
|
||||||
|
|
||||||
if (empty($conf->global->AGENDA_REMINDER_BROWSER)) {
|
if (empty($conf->global->AGENDA_REMINDER_BROWSER)) {
|
||||||
if (! getIsHTTPS()) {
|
if (!isHTTPS()) {
|
||||||
$langs->load("errors");
|
$langs->load("errors");
|
||||||
print img_warning($langs->trans("WarningAvailableOnlyForHTTPSServers"), '', 'valignmiddle size15x').' ';
|
print img_warning($langs->trans("WarningAvailableOnlyForHTTPSServers"), '', 'valignmiddle size15x').' ';
|
||||||
}
|
}
|
||||||
print '<a class="valignmiddle" href="'.$_SERVER['PHP_SELF'].'?action=set_AGENDA_REMINDER_BROWSER&token='.newToken().'">'.img_picto($langs->trans('Disabled'), 'switch_off').'</a>';
|
print '<a class="valignmiddle" href="'.$_SERVER['PHP_SELF'].'?action=set_AGENDA_REMINDER_BROWSER&token='.newToken().'">'.img_picto($langs->trans('Disabled'), 'switch_off').'</a>';
|
||||||
print '</td></tr>'."\n";
|
print '</td></tr>'."\n";
|
||||||
} else {
|
} else {
|
||||||
if (! getIsHTTPS()) {
|
if (!isHTTPS()) {
|
||||||
$langs->load("errors");
|
$langs->load("errors");
|
||||||
print img_warning($langs->trans("WarningAvailableOnlyForHTTPSServers"), '', 'valignmiddle size15x').' ';
|
print img_warning($langs->trans("WarningAvailableOnlyForHTTPSServers"), '', 'valignmiddle size15x').' ';
|
||||||
}
|
}
|
||||||
|
|||||||
@ -2909,7 +2909,7 @@ function getUserRemoteIP()
|
|||||||
*
|
*
|
||||||
* @return boolean True if user is using HTTPS
|
* @return boolean True if user is using HTTPS
|
||||||
*/
|
*/
|
||||||
function getIsHTTPS()
|
function isHTTPS()
|
||||||
{
|
{
|
||||||
$isSecure = false;
|
$isSecure = false;
|
||||||
if (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') {
|
if (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user