From c949e085c33b6eaf2e1dda4add566d47ab1876cd Mon Sep 17 00:00:00 2001 From: icewing Date: Thu, 5 Jun 2008 12:52:13 +0000 Subject: Marcus Povey * Partial internationalisation of exceptions git-svn-id: https://code.elgg.org/elgg/trunk@801 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/elgglib.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engine/lib/elgglib.php') 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")); } /** -- cgit v1.2.3