aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/elgglib.php
diff options
context:
space:
mode:
authoricewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-06-05 12:52:13 +0000
committericewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-06-05 12:52:13 +0000
commitc949e085c33b6eaf2e1dda4add566d47ab1876cd (patch)
tree648f4d1fd9e1565aeae53c40ae883570fe16963f /engine/lib/elgglib.php
parent152405d1b34b8ba1a27b288eba53bb29ed2bf228 (diff)
downloadelgg-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/elgglib.php')
-rw-r--r--engine/lib/elgglib.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/engine/lib/elgglib.php b/engine/lib/elgglib.php
index e07d59162..9c071f497 100644
--- a/engine/lib/elgglib.php
+++ b/engine/lib/elgglib.php
@@ -859,7 +859,7 @@
register_error("ERROR: " . $error);
// Since this is a fatal error, we want to stop any further execution but do so gracefully.
- throw new Exception("ERROR: " . $error);
+ throw new Exception($error);
break;
case E_WARNING :
@@ -1159,7 +1159,7 @@
}
}
- throw new SecurityException("Denied access to execute privileged code block");
+ throw new SecurityException(elgg_echo("SecurityException:Codeblock"));
}
/**