aboutsummaryrefslogtreecommitdiff
path: root/pages
diff options
context:
space:
mode:
Diffstat (limited to 'pages')
-rw-r--r--pages/account/register.php2
-rw-r--r--pages/avatar/view.php1
2 files changed, 1 insertions, 2 deletions
diff --git a/pages/account/register.php b/pages/account/register.php
index b368cfdd4..680a9f240 100644
--- a/pages/account/register.php
+++ b/pages/account/register.php
@@ -32,7 +32,7 @@ $content = elgg_view_title($title);
// create the registration url - including switching to https if configured
$register_url = elgg_get_site_url() . 'action/register';
-if ((isset($CONFIG->https_login)) && ($CONFIG->https_login)) {
+if (elgg_get_config('https_login')) {
$register_url = str_replace("http:", "https:", $register_url);
}
$form_params = array('action' => $register_url);
diff --git a/pages/avatar/view.php b/pages/avatar/view.php
index ed8a47d59..8b420c61a 100644
--- a/pages/avatar/view.php
+++ b/pages/avatar/view.php
@@ -31,7 +31,6 @@ if ($filehandler->open("read")) {
}
if (!$success) {
- global $CONFIG;
$path = elgg_view('icon/user/default/'.$size);
header("Location: {$path}");
exit;