aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/elgglib.php
diff options
context:
space:
mode:
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"));
}
/**