aboutsummaryrefslogtreecommitdiff
path: root/mod/pages/index.php
diff options
context:
space:
mode:
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-11-03 22:13:10 +0000
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-11-03 22:13:10 +0000
commiteff4faea7f3c95440f02ea45d0be4f67236e2bf3 (patch)
tree57d51ef4bc84547d60c9a6faae7d5ff5d82d00f9 /mod/pages/index.php
parent4b501dda1d62195531e4c2ab1bd84971c0cd4e37 (diff)
downloadelgg-eff4faea7f3c95440f02ea45d0be4f67236e2bf3.tar.gz
elgg-eff4faea7f3c95440f02ea45d0be4f67236e2bf3.tar.bz2
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
Diffstat (limited to 'mod/pages/index.php')
-rw-r--r--mod/pages/index.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/mod/pages/index.php b/mod/pages/index.php
index e3d440692..31f76f625 100644
--- a/mod/pages/index.php
+++ b/mod/pages/index.php
@@ -12,7 +12,7 @@ global $CONFIG;
// Add menus
$owner = elgg_get_page_owner();
if (!($owner instanceof ElggGroup)) {
- add_submenu_item(sprintf(elgg_echo("pages:user"), elgg_get_page_owner()->name), "pg/pages/owned/" . elgg_get_page_owner()->username, 'pageslinksgeneral');
+ add_submenu_item(elgg_echo("pages:user", array(elgg_get_page_owner()->name)), "pg/pages/owned/" . elgg_get_page_owner()->username, 'pageslinksgeneral');
add_submenu_item(elgg_echo('pages:all'), "mod/pages/world.php", 'pageslinksgeneral');
}
if (($owner instanceof ElggEntity) && (can_write_to_container(0,$owner->guid))){
@@ -27,9 +27,9 @@ $limit = get_input("limit", 10);
$offset = get_input("offset", 0);
if($owner instanceof ElggGroup){
- $title = sprintf(elgg_echo("pages:group"),$owner->name);
+ $title = elgg_echo("pages:group",array($owner->name));
}else{
- $title = sprintf(elgg_echo("pages:user"),$owner->name);
+ $title = elgg_echo("pages:user",array($owner->name));
}