From 15de3e32014d3ca834fa9877cf978ec3f612a8cc Mon Sep 17 00:00:00 2001 From: Harvie Date: Mon, 29 Nov 2010 00:42:06 +0100 Subject: [PATCH] Little fixup of PATH_INFO algorithm... Default page is (k)id 1 now... --- wwwroot/nodes.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wwwroot/nodes.php b/wwwroot/nodes.php index eb734ab..723f940 100644 --- a/wwwroot/nodes.php +++ b/wwwroot/nodes.php @@ -49,6 +49,10 @@ if($PATH_INFO != '') { break; } } +if( + (!isset($_GET['node_kid']) || trim($_GET['node_kid']) == '') && + (!isset($_GET['node_id']) || trim($_GET['node_id']) == '') +) $_GET['node_kid'] = 1; //Base36 http://en.wikipedia.org/wiki/Base_36 (Initial support only :-) if(isset($_GET['node_kid'])) $_GET['node_id'] = base_convert($_GET['node_kid'], 36, 10); -- 2.30.2