diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-11-30 11:10:58 -0800 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-11-30 13:57:50 -0800 |
commit | 852653ef2415dc070c27ce151ed399525ddfa5a0 (patch) | |
tree | 1e1e081e27fd5e3cbe0b867449332d289abdde44 /modules/gallery/config | |
parent | 299da7b54f17408a53f7771305bcdd22ef94ec36 (diff) |
Clean up item routing a bit.
1) The new default route is "albums", and Albums_Controller::index() does the right thing
2) Items_Controller redirects to the appropriate specific controller
3) All item controllers now have show() instead of _show(), so that
the routing code in url::parse_url() can get to it. But that code is protected against
receiving bogus requests.
Diffstat (limited to 'modules/gallery/config')
-rw-r--r-- | modules/gallery/config/routes.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gallery/config/routes.php b/modules/gallery/config/routes.php index 503d6f5b..63cc6150 100644 --- a/modules/gallery/config/routes.php +++ b/modules/gallery/config/routes.php @@ -25,4 +25,4 @@ $config["^admin_.*"] = null; $config["^form/(edit|add)/(\w+)/(.*)$"] = "$2/form_$1/$3"; // Default page is the root album -$config["_default"] = "albums/1"; +$config["_default"] = "albums"; |