advanced build (1/2): a small refactor of index generating procedure; generation strategies
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user