summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteven Wittens <steven@10.no-reply.drupal.org>2005-07-29 21:39:18 +0000
committerSteven Wittens <steven@10.no-reply.drupal.org>2005-07-29 21:39:18 +0000
commita1834101b64077a65f889a8c75ecea4f45e36f1d (patch)
tree15a2ce450dc0cb57fcc4d063696efe908a79d76c
parent2a561f3bc1105cc1d5e8ca14482cdf0760c2a16a (diff)
downloadbrdo-a1834101b64077a65f889a8c75ecea4f45e36f1d.tar.gz
brdo-a1834101b64077a65f889a8c75ecea4f45e36f1d.tar.bz2
- #20668: Fix "username's blog" appearance rules.
-rw-r--r--modules/blog.module2
-rw-r--r--modules/blog/blog.module2
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/blog.module b/modules/blog.module
index 791e9ec84..308e4eea1 100644
--- a/modules/blog.module
+++ b/modules/blog.module
@@ -237,7 +237,7 @@ function blog_link($type, $node = 0, $main = 0) {
$links = array();
if ($type == 'node' && $node->type == 'blog') {
- if (arg(0) != 'blog' && arg(1) != $node->uid) {
+ if (arg(0) != 'blog' || arg(1) != $node->uid) {
$links[] = l(t("%username's blog", array('%username' => $node->name)), "blog/$node->uid", array('title' => t("Read %username's latest blog entries.", array('%username' => $node->name))));
}
}
diff --git a/modules/blog/blog.module b/modules/blog/blog.module
index 791e9ec84..308e4eea1 100644
--- a/modules/blog/blog.module
+++ b/modules/blog/blog.module
@@ -237,7 +237,7 @@ function blog_link($type, $node = 0, $main = 0) {
$links = array();
if ($type == 'node' && $node->type == 'blog') {
- if (arg(0) != 'blog' && arg(1) != $node->uid) {
+ if (arg(0) != 'blog' || arg(1) != $node->uid) {
$links[] = l(t("%username's blog", array('%username' => $node->name)), "blog/$node->uid", array('title' => t("Read %username's latest blog entries.", array('%username' => $node->name))));
}
}