summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/blogapi.module2
-rw-r--r--modules/blogapi/blogapi.module2
-rw-r--r--modules/user.module2
-rw-r--r--modules/user/user.module2
4 files changed, 4 insertions, 4 deletions
diff --git a/modules/blogapi.module b/modules/blogapi.module
index dc4b54894..5f2a13ba4 100644
--- a/modules/blogapi.module
+++ b/modules/blogapi.module
@@ -575,7 +575,7 @@ function blogapi_settings() {
function blogapi_menu($may_cache) {
$items = array();
- if (drupal_get_path_alias($_GET['q']) == variable_get('site_frontpage', 'node')) {
+ if (drupal_is_front_page()) {
drupal_add_link(array('rel' => 'EditURI',
'type' => 'application/rsd+xml',
'title' => t('RSD'),
diff --git a/modules/blogapi/blogapi.module b/modules/blogapi/blogapi.module
index dc4b54894..5f2a13ba4 100644
--- a/modules/blogapi/blogapi.module
+++ b/modules/blogapi/blogapi.module
@@ -575,7 +575,7 @@ function blogapi_settings() {
function blogapi_menu($may_cache) {
$items = array();
- if (drupal_get_path_alias($_GET['q']) == variable_get('site_frontpage', 'node')) {
+ if (drupal_is_front_page()) {
drupal_add_link(array('rel' => 'EditURI',
'type' => 'application/rsd+xml',
'title' => t('RSD'),
diff --git a/modules/user.module b/modules/user.module
index f87be38aa..a997a5807 100644
--- a/modules/user.module
+++ b/modules/user.module
@@ -1077,7 +1077,7 @@ function user_pass_reset($uid, $timestamp, $hashed_pass, $action = NULL) {
// Check if the user is already logged in. The back button is often the culprit here.
if ($user->uid) {
drupal_set_message(t('You have already used this one-time login link. It is not necessary to use this link to login anymore. You are already logged in.'));
- drupal_goto(variable_get('site_frontpage', 'node'));
+ drupal_goto();
}
else {
// Time out, in seconds, until login URL expires. 24 hours = 86400 seconds.
diff --git a/modules/user/user.module b/modules/user/user.module
index f87be38aa..a997a5807 100644
--- a/modules/user/user.module
+++ b/modules/user/user.module
@@ -1077,7 +1077,7 @@ function user_pass_reset($uid, $timestamp, $hashed_pass, $action = NULL) {
// Check if the user is already logged in. The back button is often the culprit here.
if ($user->uid) {
drupal_set_message(t('You have already used this one-time login link. It is not necessary to use this link to login anymore. You are already logged in.'));
- drupal_goto(variable_get('site_frontpage', 'node'));
+ drupal_goto();
}
else {
// Time out, in seconds, until login URL expires. 24 hours = 86400 seconds.