X-Git-Url: https://git.bts.cx/cx.git/blobdiff_plain/af380ed734795855fb40fbb311c3a85d052d3a83..refs/heads/mainline:/cx/cx.php?ds=sidebyside diff --git a/cx/cx.php b/cx/cx.php index a47714b..2c71761 100644 --- a/cx/cx.php +++ b/cx/cx.php @@ -66,6 +66,7 @@ function cx_route($path) { if (count($path_components) == 0) { $template = 'list'; + $template_variables['page_number'] = 0; } else if (count($path_components) >= 1 && $path_components[0] == 'feed') { header('Content-type: application/atom+xml;'); $template = 'atom'; @@ -162,6 +163,11 @@ function cx_route($path) { } } } + } else if (count($path_components) >= 2 && $path_components[0] == 'page') { // FIXME sometime, needs more flexibility... + $page_number = $path_components[1]; + + $template = 'list'; + $template_variables['page_number'] = $page_number; } else if (count($path_components) >= 3) { // FIXME sometime, needs more flexibility... $year = $path_components[0]; $month = $path_components[1];