diff options
author | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-11-03 22:13:10 +0000 |
---|---|---|
committer | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-11-03 22:13:10 +0000 |
commit | eff4faea7f3c95440f02ea45d0be4f67236e2bf3 (patch) | |
tree | 57d51ef4bc84547d60c9a6faae7d5ff5d82d00f9 /mod/categories | |
parent | 4b501dda1d62195531e4c2ab1bd84971c0cd4e37 (diff) | |
download | elgg-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/categories')
-rw-r--r-- | mod/categories/listing.php | 2 | ||||
-rw-r--r-- | mod/categories/start.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/mod/categories/listing.php b/mod/categories/listing.php index efbac8551..19fb65069 100644 --- a/mod/categories/listing.php +++ b/mod/categories/listing.php @@ -28,7 +28,7 @@ elgg_push_context('search'); $objects = elgg_list_entities_from_metadata($params); elgg_pop_context(); -$title = sprintf(elgg_echo('categories:results'), $category); +$title = elgg_echo('categories:results', array($category)); $content = elgg_view_title($title); $content .= $objects; diff --git a/mod/categories/start.php b/mod/categories/start.php index 2dedb3dc3..35406459a 100644 --- a/mod/categories/start.php +++ b/mod/categories/start.php @@ -60,7 +60,7 @@ function categories_save($event, $object_type, $object) { function categories_on_enable() { if (!$site->categories) { global $CONFIG; - $message = sprintf(elgg_echo('categories:on_enable_reminder'), "{$CONFIG->url}pg/admin/plugin_settings/categories"); + $message = elgg_echo('categories:on_enable_reminder', array("{$CONFIG->url}pg/admin/plugin_settings/categories")); elgg_add_admin_notice('categories_admin_notice_no_categories', $message); } return TRUE; |