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/pages/views/default/river/object/page_top/annotate.php | 2 +- mod/pages/views/default/river/object/page_top/create.php | 2 +- mod/pages/views/default/river/object/page_top/update.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'mod/pages/views/default/river/object/page_top') diff --git a/mod/pages/views/default/river/object/page_top/annotate.php b/mod/pages/views/default/river/object/page_top/annotate.php index 43270f736..e12eb55f9 100644 --- a/mod/pages/views/default/river/object/page_top/annotate.php +++ b/mod/pages/views/default/river/object/page_top/annotate.php @@ -10,7 +10,7 @@ $performed_by = $statement->getSubject(); $object = $statement->getObject(); $url = "getURL()}\">{$performed_by->name}"; -$string = sprintf(elgg_echo("pages:river:posted"),$url) . " "; +$string = elgg_echo("pages:river:posted", array($url)) . " "; $string .= elgg_echo("pages:river:annotate:create") . " getURL() . "\">" . $object->title . ""; echo $string; diff --git a/mod/pages/views/default/river/object/page_top/create.php b/mod/pages/views/default/river/object/page_top/create.php index d49f3d5c4..d951a2f6a 100644 --- a/mod/pages/views/default/river/object/page_top/create.php +++ b/mod/pages/views/default/river/object/page_top/create.php @@ -10,6 +10,6 @@ $performed_by = $statement->getSubject(); $object = $statement->getObject(); $url = "getURL()}\">{$performed_by->name}"; -$string = sprintf(elgg_echo("pages:river:created"),$url) . " "; +$string = elgg_echo("pages:river:created", array($url)) . " "; $string .= elgg_echo("pages:river:create") . "getURL() . "\">" . $object->title . ""; echo $string; \ No newline at end of file diff --git a/mod/pages/views/default/river/object/page_top/update.php b/mod/pages/views/default/river/object/page_top/update.php index 6187f54bc..611cd21e9 100644 --- a/mod/pages/views/default/river/object/page_top/update.php +++ b/mod/pages/views/default/river/object/page_top/update.php @@ -10,7 +10,7 @@ $performed_by = $statement->getSubject(); $object = $statement->getObject(); $url = "getURL()}\">{$performed_by->name}"; -$string = sprintf(elgg_echo("pages:river:updated"),$url) . " "; +$string = elgg_echo("pages:river:updated", array($url)) . " "; $string .= elgg_echo("pages:river:update") . " getURL() . "\">" . $object->title . ""; echo $string; \ No newline at end of file -- cgit v1.2.3