summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/gallery/helpers/gallery_rest.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gallery/helpers/gallery_rest.php b/modules/gallery/helpers/gallery_rest.php
index 49096100..c5838ea5 100644
--- a/modules/gallery/helpers/gallery_rest.php
+++ b/modules/gallery/helpers/gallery_rest.php
@@ -52,7 +52,7 @@ class gallery_rest_Core {
}
if (!in_array($p->scope, array("direct", "all"))) {
- throw new Exception("Bad Request", 400);
+ throw new Rest_Exception("Bad Request", 400);
}
if ($p->scope == "direct") {