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/index.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'mod/pages/index.php') 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)); } -- cgit v1.2.3