diff --git a/bureau/admin/index.php b/bureau/admin/index.php index f5095b9d..6876d9fd 100644 --- a/bureau/admin/index.php +++ b/bureau/admin/index.php @@ -88,7 +88,7 @@ if (!$_SERVER[HTTPS]) { // Here we used to have a form to enter the squirrelmail's webmail. // Following the "rule of less astonishment, we try to put it here again, even though the webmail is now a plugin. $res=$hooks->invoke("hook_admin_webmail"); -if (($wr=get_variable("webmail_redirect")) && isset($res[$wr]) && $res[$wr]) { +if (($wr=variable_get("webmail_redirect")) && isset($res[$wr]) && $res[$wr]) { $url=$res[$wr]; } else { foreach($res as $r) if ($r!==false) { $url=$r; break; } diff --git a/bureau/admin/webmail-redirect.php b/bureau/admin/webmail-redirect.php index 12f93dec..1b042471 100644 --- a/bureau/admin/webmail-redirect.php +++ b/bureau/admin/webmail-redirect.php @@ -27,7 +27,7 @@ require_once("../class/config_nochk.php"); $res=$hooks->invoke("hook_admin_webmail"); -if (($wr=get_variable("webmail_redirect")) && isset($res[$wr]) && $res[$wr]) { +if (($wr=variable_get("webmail_redirect")) && isset($res[$wr]) && $res[$wr]) { $url=$res[$wr]; } else { foreach($res as $r) if ($r!==false) { $url=$r; break; }