diff options
| author | Bharat Mediratta <bharat@menalto.com> | 2009-12-01 19:44:29 -0800 |
|---|---|---|
| committer | Bharat Mediratta <bharat@menalto.com> | 2009-12-01 19:44:29 -0800 |
| commit | c803cb29091d3b069077d7711a2485f75f274835 (patch) | |
| tree | f0ebcdacf6d749e6e2ebc47be4634a7eb13c2d5d /modules/gallery/controllers/photos.php | |
| parent | 53df0df0a4f9d2d5369016a7e2ea983ffe202346 (diff) | |
| parent | 6fa880777cb3b61c0e380ebd5e7b83de55a8d6d4 (diff) | |
Merge branch 'master' of git@github.com:gallery/gallery3 into bharat_dev
Diffstat (limited to 'modules/gallery/controllers/photos.php')
| -rw-r--r-- | modules/gallery/controllers/photos.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/modules/gallery/controllers/photos.php b/modules/gallery/controllers/photos.php index 5431fcfe..f7c5039e 100644 --- a/modules/gallery/controllers/photos.php +++ b/modules/gallery/controllers/photos.php @@ -18,7 +18,12 @@ * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. */ class Photos_Controller extends Items_Controller { - public function _show($photo) { + public function show($photo) { + if (!is_object($photo)) { + // show() must be public because we route to it in url::parse_url(), so make + // sure that we're actually receiving an object + Kohana::show_404(); + } access::required("view", $photo); $where = array(array("type", "!=", "album")); |
