From c6f03f2be9d8ac83ee35b779c7fe3f67777068dd Mon Sep 17 00:00:00 2001 From: Brian Daley Date: Tue, 12 Sep 2017 16:17:57 -0400 Subject: [PATCH] make config more portable --- www/config.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/www/config.php b/www/config.php index bc6dab3..dcbb775 100644 --- a/www/config.php +++ b/www/config.php @@ -13,20 +13,20 @@ * Site Navigation */ $navigation = array( - 'Home' => '/www/index.php', - 'About' => '/www/about.php', - 'Contact' => '/www/contact.php' + 'Home' => 'index.php', + 'About' => 'about.php', + 'Contact' => 'contact.php' ); /** * Store the URI for the current page (as requested by the user) * * This should set $current to one of the following - * - /www/index.php' - * - /www/about.php' - * - /www/contact.php + * - index.php' + * - about.php' + * - contact.php */ -$current = $_SERVER['REQUEST_URI']; +$current = basename($_SERVER['REQUEST_URI']); /**