diff options
author | icewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-06-05 12:52:13 +0000 |
---|---|---|
committer | icewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-06-05 12:52:13 +0000 |
commit | c949e085c33b6eaf2e1dda4add566d47ab1876cd (patch) | |
tree | 648f4d1fd9e1565aeae53c40ae883570fe16963f /engine/lib/metadata.php | |
parent | 152405d1b34b8ba1a27b288eba53bb29ed2bf228 (diff) | |
download | elgg-c949e085c33b6eaf2e1dda4add566d47ab1876cd.tar.gz elgg-c949e085c33b6eaf2e1dda4add566d47ab1876cd.tar.bz2 |
Marcus Povey <marcus@dushka.co.uk>
* Partial internationalisation of exceptions
git-svn-id: https://code.elgg.org/elgg/trunk@801 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/metadata.php')
-rw-r--r-- | engine/lib/metadata.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engine/lib/metadata.php b/engine/lib/metadata.php index 798505288..44474c7d6 100644 --- a/engine/lib/metadata.php +++ b/engine/lib/metadata.php @@ -81,7 +81,7 @@ else { $this->id = create_metadata($this->entity_guid, $this->name, $this->value, $this->value_type, $this->owner_guid, $this->access_id); - if (!$this->id) throw new IOException("Unable to save new ElggAnnotation"); + if (!$this->id) throw new IOException(sprintf(elgg_new('IOException:UnableToSaveNew'), get_class())); return $this->id; } @@ -514,10 +514,10 @@ { // Sanity check values if ((!is_array($params)) && (!isset($params['guid']))) - throw new InvalidParameterException("GUID has not been specified during export, this should never happen."); + throw new InvalidParameterException(elgg_echo('InvalidParameterException:GUIDNotForExport')); if (!is_array($returnvalue)) - throw new InvalidParameterException("Entity serialisation function passed a non-array returnvalue parameter"); + throw new InvalidParameterException(elgg_echo('InvalidParameterException:NonArrayReturnValue')); $guid = (int)$params['guid']; $name = $params['name']; |