From 998a39940b27561d7a2e98b68c8929dab68fe62f Mon Sep 17 00:00:00 2001 From: brettp Date: Wed, 3 Nov 2010 19:46:47 +0000 Subject: Refs #1320. Updated core to use elgg_echo()'s native string replacement. git-svn-id: http://code.elgg.org/elgg/trunk@7227 36083f99-b078-4883-b0ff-0f9b5a30f544 --- services/export/handler.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'services') diff --git a/services/export/handler.php b/services/export/handler.php index 21336bbec..9ce1419df 100644 --- a/services/export/handler.php +++ b/services/export/handler.php @@ -26,7 +26,7 @@ if (($guid != "") && ($type == "") && ($id_or_name == "")) { $entity = get_entity($guid); if (!$entity) { - $query = sprintf(elgg_echo('InvalidParameterException:GUIDNotFound'), $guid); + $query = elgg_echo('InvalidParameterException:GUIDNotFound', array($guid)); throw new InvalidParameterException($query); } @@ -38,7 +38,7 @@ if (($guid != "") && ($type == "") && ($id_or_name == "")) { // Get a uuid $entity = get_entity($guid); if (!$entity) { - $msg = sprintf(elgg_echo('InvalidParameterException:GUIDNotFound'), $guid); + $msg = elgg_echo('InvalidParameterException:GUIDNotFound', array($guid)); throw new InvalidParameterException($msg); } @@ -48,7 +48,7 @@ if (($guid != "") && ($type == "") && ($id_or_name == "")) { case 'attr' : // @todo: Do this better? - This is a bit of a hack... $v = $entity->get($id_or_name); if (!$v) { - $msg = sprintf(elgg_echo('InvalidParameterException:IdNotExistForGUID'), $id_or_name, $guid); + $msg = elgg_echo('InvalidParameterException:IdNotExistForGUID', array($id_or_name, $guid)); throw new InvalidParameterException($msg); } @@ -78,7 +78,7 @@ if (($guid != "") && ($type == "") && ($id_or_name == "")) { break; default : - $msg = sprintf(elgg_echo('InvalidParameterException:CanNotExportType'), $type); + $msg = elgg_echo('InvalidParameterException:CanNotExportType', array($type)); throw new InvalidParameterException($msg); } -- cgit v1.2.3