Commit a1ff602e authored by Dries's avatar Dries
Browse files

- Patch #773522 by BarisW: blog links appear on all content types.

parent 2aad3ce0
......@@ -79,7 +79,7 @@ function blog_view($node, $view_mode) {
*/
function blog_node_view($node, $view_mode = 'full') {
if ($view_mode != 'rss') {
if ($node->type == 'blog' && arg(0) != 'blog' || arg(1) != $node->uid) {
if ($node->type == 'blog' && (arg(0) != 'blog' || arg(1) != $node->uid)) {
$links['blog_usernames_blog'] = array(
'title' => t("!username's blog", array('!username' => format_username($node))),
'href' => "blog/$node->uid",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment