aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--languages/en.php2
-rw-r--r--views/default/export/entity.php2
2 files changed, 3 insertions, 1 deletions
diff --git a/languages/en.php b/languages/en.php
index 86136a574..374e59340 100644
--- a/languages/en.php
+++ b/languages/en.php
@@ -84,6 +84,8 @@
'DatabaseException:UnspecifiedQueryType' => "Unrecognised or unspecified query type.",
'DatabaseException:NoTablesSpecified' => "No tables specified for query.",
'DatabaseException:NoACL' => "No access control was provided on query",
+
+ 'InvalidParameterException:NoEntityFound' => "No entity found, it either doesn't exist or you don't have access to it.",
/**
* User details
diff --git a/views/default/export/entity.php b/views/default/export/entity.php
index 1ddde4b78..43189d693 100644
--- a/views/default/export/entity.php
+++ b/views/default/export/entity.php
@@ -12,7 +12,7 @@
*/
$entity = $vars['entity'];
- if (!$entity) throw new InvalidParameterException("No entity found, it either doesn't exist or you don't have access to it.");
+ if (!$entity) throw new InvalidParameterException(elgg_echo('InvalidParameterException:NoEntityFound'));
$metadata = get_metadata_for_entity($entity->guid);
$annotations = get_annotations($entity->guid);