aboutsummaryrefslogtreecommitdiff
path: root/services/export/handler.php
diff options
context:
space:
mode:
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-11-03 19:46:47 +0000
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-11-03 19:46:47 +0000
commit998a39940b27561d7a2e98b68c8929dab68fe62f (patch)
tree79e73eb7bd8ae843609a2f4f0a526377800430e1 /services/export/handler.php
parent4b3749440c560da36b7deadcee65133062fd10a1 (diff)
downloadelgg-998a39940b27561d7a2e98b68c8929dab68fe62f.tar.gz
elgg-998a39940b27561d7a2e98b68c8929dab68fe62f.tar.bz2
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
Diffstat (limited to 'services/export/handler.php')
-rw-r--r--services/export/handler.php8
1 files changed, 4 insertions, 4 deletions
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);
}