diff options
| author | czaks <marcin@6irc.net> | 2016-05-08 10:54:30 +0200 |
|---|---|---|
| committer | czaks <marcin@6irc.net> | 2016-05-08 10:54:30 +0200 |
| commit | b6f0317bde1b6d9a9ac5d81a660865a7aa9ad13d (patch) | |
| tree | 6c6523b9081d2d561080f1b2d8378d93e2a237e1 /inc/route.php | |
| parent | 644f227ab33f247dc82e0208fe2125d5d002f4f4 (diff) | |
advanced build (1/2): a small refactor of index generating procedure; generation strategies
Diffstat (limited to 'inc/route.php')
| -rw-r--r-- | inc/route.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/inc/route.php b/inc/route.php index 66602d77..2a5c1732 100644 --- a/inc/route.php +++ b/inc/route.php @@ -7,7 +7,7 @@ defined('TINYBOARD') or exit; -function route($path) { +function route($path) { global $config; $entrypoints = array(); $entrypoints['/%b/'] = 'sb_board'; @@ -33,8 +33,11 @@ function route($path) { $entrypoints['/*/index.html'] = 'sb_ukko'; $entrypoints['/recent.html'] = 'sb_recent'; $entrypoints['/%b/catalog.html'] = 'sb_catalog'; + $entrypoints['/%b/index.rss'] = 'sb_catalog'; $entrypoints['/sitemap.xml'] = 'sb_sitemap'; + $entrypoints = array_merge($entrypoints, $config['controller_entrypoints']); + $reached = false; list($request) = explode('?', $path); |
