summaryrefslogtreecommitdiff
path: root/modules/blog
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2008-07-05 11:55:32 +0000
committerDries Buytaert <dries@buytaert.net>2008-07-05 11:55:32 +0000
commited086130de20364b0338aa51d5d5347436cb0345 (patch)
treea022dc6795937cb43f123137efa913fa478d8e35 /modules/blog
parent00593022b075c0537a7c411cef1f2ec8ca235db5 (diff)
downloadbrdo-ed086130de20364b0338aa51d5d5347436cb0345.tar.gz
brdo-ed086130de20364b0338aa51d5d5347436cb0345.tar.bz2
- Patch #276174 by nbz: avoid calling check_plain() twice.
Diffstat (limited to 'modules/blog')
-rw-r--r--modules/blog/blog.module8
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/blog/blog.module b/modules/blog/blog.module
index f56660b78..25b552033 100644
--- a/modules/blog/blog.module
+++ b/modules/blog/blog.module
@@ -49,7 +49,7 @@ function blog_user($type, &$edit, &$user) {
$user->content['summary']['blog'] = array(
'#type' => 'user_profile_item',
'#title' => t('Blog'),
- '#value' => l(t('View recent blog entries'), "blog/$user->uid", array('attributes' => array('title' => t("Read @username's latest blog entries.", array('@username' => $user->name))))),
+ '#value' => l(t('View recent blog entries'), "blog/$user->uid", array('attributes' => array('title' => t("Read !username's latest blog entries.", array('!username' => $user->name))))),
'#attributes' => array('class' => 'blog'),
);
}
@@ -104,7 +104,7 @@ function blog_form(&$node) {
function blog_view($node, $teaser = FALSE, $page = FALSE) {
if ($page) {
// Breadcrumb navigation.
- drupal_set_breadcrumb(array(l(t('Home'), NULL), l(t('Blogs'), 'blog'), l(t("@name's blog", array('@name' => $node->name)), 'blog/' . $node->uid)));
+ drupal_set_breadcrumb(array(l(t('Home'), NULL), l(t('Blogs'), 'blog'), l(t("!name's blog", array('!name' => $node->name)), 'blog/' . $node->uid)));
}
return node_prepare($node, $teaser);
@@ -119,9 +119,9 @@ function blog_link($type, $node = NULL, $teaser = FALSE) {
if ($type == 'node' && $node->type == 'blog') {
if (arg(0) != 'blog' || arg(1) != $node->uid) {
$links['blog_usernames_blog'] = array(
- 'title' => t("@username's blog", array('@username' => $node->name)),
+ 'title' => t("!username's blog", array('!username' => $node->name)),
'href' => "blog/$node->uid",
- 'attributes' => array('title' => t("Read @username's latest blog entries.", array('@username' => $node->name))),
+ 'attributes' => array('title' => t("Read !username's latest blog entries.", array('!username' => $node->name))),
);
}
}