summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2010-01-20 22:46:46 -0800
committerBharat Mediratta <bharat@menalto.com>2010-01-20 22:46:46 -0800
commit00957f79bab42b2323b9fe52425b1e0ed51137ac (patch)
treec4c786984460d9f218fcc1891f9d0262396bbd1d /modules
parent995faaa27fc870589e346f7ef65e0bd7cabfe047 (diff)
Throw Kohana_Exception instead of Exception on access denied, since that may bubble all the way up
Diffstat (limited to 'modules')
-rw-r--r--modules/gallery/helpers/access.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gallery/helpers/access.php b/modules/gallery/helpers/access.php
index 2cfaa947..10fa8666 100644
--- a/modules/gallery/helpers/access.php
+++ b/modules/gallery/helpers/access.php
@@ -186,7 +186,7 @@ class access_Core {
* Terminate immediately with an HTTP 403 Forbidden response.
*/
static function forbidden() {
- throw new Exception("@todo FORBIDDEN", 403);
+ throw new Kohana_Exception("@todo FORBIDDEN", null, 403);
}
/**