summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKjartan Mannes <kjartan@2.no-reply.drupal.org>2002-05-02 14:59:45 +0000
committerKjartan Mannes <kjartan@2.no-reply.drupal.org>2002-05-02 14:59:45 +0000
commit891cad97a3a7749ad8228b704fa04d68601d33a8 (patch)
tree25483336c97eecd98a184f05f281624206e32feb
parentc36dd7cfd591c92a350cba696b82e432f45efc8a (diff)
downloadbrdo-891cad97a3a7749ad8228b704fa04d68601d33a8.tar.gz
brdo-891cad97a3a7749ad8228b704fa04d68601d33a8.tar.bz2
- clearing extra spaces from user.module.
- patching weblogs.module.
-rw-r--r--modules/user.module2
-rw-r--r--modules/user/user.module2
-rw-r--r--modules/weblogs.module4
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());