diff options
-rw-r--r-- | modules/user.module | 2 | ||||
-rw-r--r-- | modules/user/user.module | 2 | ||||
-rw-r--r-- | modules/weblogs.module | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/modules/user.module b/modules/user.module index d59abb00d..a8cc14144 100644 --- a/modules/user.module +++ b/modules/user.module @@ -217,7 +217,7 @@ function user_access($string) { ** To reduce the number of SQL queries, we cache the user's permissions ** in a static variable. */ - + if (!$perm) { if ($user->uid) { $perm = db_result(db_query("SELECT p.perm FROM role r, permission p WHERE r.rid = p.rid AND name = '$user->role'"), 0); diff --git a/modules/user/user.module b/modules/user/user.module index d59abb00d..a8cc14144 100644 --- a/modules/user/user.module +++ b/modules/user/user.module @@ -217,7 +217,7 @@ function user_access($string) { ** To reduce the number of SQL queries, we cache the user's permissions ** in a static variable. */ - + if (!$perm) { if ($user->uid) { $perm = db_result(db_query("SELECT p.perm FROM role r, permission p WHERE r.rid = p.rid AND name = '$user->role'"), 0); diff --git a/modules/weblogs.module b/modules/weblogs.module index 3619124bf..ebd7671c6 100644 --- a/modules/weblogs.module +++ b/modules/weblogs.module @@ -14,9 +14,9 @@ function weblogs_help() { function weblogs_cron() { - if (variable_get("weblogs_ping", 0) && variable_get("site_name", 0) && variable_get("site_url", 0)) { + if (variable_get("weblogs_ping", 0) && variable_get("site_name", 0) && variable_get("site_slogan", 0)) { if (db_num_rows(db_query("SELECT nid FROM node WHERE status = 1 AND moderate = 0 AND (created > '". variable_get("weblogs_cron_last", time()) ."' OR changed > '". variable_get("weblogs_cron_last", time()) ."')"), 1)) { - weblogs_notify(variable_get("site_name", "") ." - ". variable_get("site_slogan", ""), variable_get("site_url", "")); + weblogs_notify(variable_get("site_name", "") ." - ". variable_get("site_slogan", ""), path_uri()); } variable_set("weblogs_cron_last", time()); |