From eff4faea7f3c95440f02ea45d0be4f67236e2bf3 Mon Sep 17 00:00:00 2001 From: brettp Date: Wed, 3 Nov 2010 22:13:10 +0000 Subject: Fixes #1320: Bundled mods use elgg_echo()'s internal string substitution. git-svn-id: http://code.elgg.org/elgg/trunk@7229 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/blog/views/default/blog/sidebar_menu.php | 4 ++-- mod/blog/views/default/object/blog.php | 2 +- mod/blog/views/default/river/object/blog/create.php | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'mod/blog/views') diff --git a/mod/blog/views/default/blog/sidebar_menu.php b/mod/blog/views/default/blog/sidebar_menu.php index f69e23e29..120237ac5 100644 --- a/mod/blog/views/default/blog/sidebar_menu.php +++ b/mod/blog/views/default/blog/sidebar_menu.php @@ -50,13 +50,13 @@ if ($page_owner) { } $link = elgg_get_site_url() . 'pg/blog/' . $page_owner->username . '/archive/' . $timestamplow . '/' . $timestamphigh; - $month = sprintf(elgg_echo('date:month:' . substr($date,4,2)), substr($date, 0, 4)); + $month = elgg_echo('date:month:' . substr($date, 4, 2), array(substr($date, 0, 4))); echo "
  • $month
  • "; } echo ''; } - + // friends page lists all tags; mine lists owner's $owner_guid = ($vars['page'] == 'friends') ? '' : $page_owner->getGUID(); echo display_tagcloud(0, 50, 'tags', 'object', 'blog', $owner_guid); diff --git a/mod/blog/views/default/object/blog.php b/mod/blog/views/default/object/blog.php index eaf25d726..7f91ae608 100644 --- a/mod/blog/views/default/object/blog.php +++ b/mod/blog/views/default/object/blog.php @@ -21,7 +21,7 @@ $excerpt = $blog->excerpt; $body = autop($blog->description); $owner_icon = elgg_view('profile/icon', array('entity' => $owner, 'size' => 'tiny')); $owner_blog_link = "username\">{$owner->name}"; -$author_text = sprintf(elgg_echo('blog:author_by_line'), $owner_blog_link); +$author_text = elgg_echo('blog:author_by_line', array($owner_blog_link)); if($blog->tags){ $tags = "

    " . elgg_view('output/tags', array('tags' => $blog->tags)) . "

    "; }else{ diff --git a/mod/blog/views/default/river/object/blog/create.php b/mod/blog/views/default/river/object/blog/create.php index 3a521894f..d311c5883 100644 --- a/mod/blog/views/default/river/object/blog/create.php +++ b/mod/blog/views/default/river/object/blog/create.php @@ -9,7 +9,7 @@ $url = $object->getURL(); $contents = strip_tags($object->excerpt); $url = "getURL()}\">{$performed_by->name}"; -$title = sprintf(elgg_echo('blog:river:create'), $url); +$title = elgg_echo('blog:river:create', array($url)); $string .= $title . " getURL()}\">{$object->title} " . elgg_view_friendly_time($object->time_created); if (isloggedin()) { -- cgit v1.2.3