- blog.module:

+ small visual improvement
3-00
Dries Buytaert 2001-07-14 13:56:59 +00:00
parent cd16e265ba
commit 18ec47d71b
2 changed files with 2 additions and 2 deletions

View File

@ -275,7 +275,7 @@ function blog_link($type, $node = 0) {
$links[] = "<a href=\"module.php?mod=blog&op=view&name=". urlencode($user->userid) ."\">". t("view your blog") ."</a>";
}
if ($type == "node" && $node) {
if ($type == "node" && $node->type == "blog") {
$links[] = "<a href=\"module.php?mod=blog&op=view&name=". urlencode($node->userid) ."\">". strtr(t("%a's blog"), array("%a" => $node->userid)) ."</a>";
}

View File

@ -275,7 +275,7 @@ function blog_link($type, $node = 0) {
$links[] = "<a href=\"module.php?mod=blog&op=view&name=". urlencode($user->userid) ."\">". t("view your blog") ."</a>";
}
if ($type == "node" && $node) {
if ($type == "node" && $node->type == "blog") {
$links[] = "<a href=\"module.php?mod=blog&op=view&name=". urlencode($node->userid) ."\">". strtr(t("%a's blog"), array("%a" => $node->userid)) ."</a>";
}