summaryrefslogtreecommitdiff
path: root/core/hooks
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-01-29 03:22:02 +0000
committerBharat Mediratta <bharat@menalto.com>2009-01-29 03:22:02 +0000
commit894a33d744ede7ec9977133e632279ed55976f4f (patch)
tree10807ac32660ea499881fd1476c8d2cf696bd1c5 /core/hooks
parentad82721c3b164438d01ecc28350d8168894512a8 (diff)
Add support for pretty urls. So now instead of urls like:
http://example.com/gallery3/index.php/albums/2 http://example.com/gallery3/index.php/photos/9 You'll see urls like: http://example.com/gallery3/index.php/Family/Weddings http://example.com/gallery3/index.php/Family/Weddings/Bob.jpg
Diffstat (limited to 'core/hooks')
-rw-r--r--core/hooks/init_gallery.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/hooks/init_gallery.php b/core/hooks/init_gallery.php
index c6a22319..27a4d8a4 100644
--- a/core/hooks/init_gallery.php
+++ b/core/hooks/init_gallery.php
@@ -20,3 +20,4 @@
Event::add("system.ready", array("I18n", "instance"));
Event::add("system.post_routing", array("theme", "load_themes"));
Event::add("system.ready", array("module", "load_modules"));
+Event::add("system.post_routing", array("url", "parse_url"));