Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
make config more portable
  • Loading branch information
bpd01001 committed Sep 12, 2017
1 parent 154f8a5 commit c6f03f2
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions www/config.php
Expand Up @@ -13,20 +13,20 @@
* Site Navigation * Site Navigation
*/ */
$navigation = array( $navigation = array(
'Home' => '/www/index.php', 'Home' => 'index.php',
'About' => '/www/about.php', 'About' => 'about.php',
'Contact' => '/www/contact.php' 'Contact' => 'contact.php'
); );


/** /**
* Store the URI for the current page (as requested by the user) * Store the URI for the current page (as requested by the user)
* *
* This should set $current to one of the following * This should set $current to one of the following
* - /www/index.php' * - index.php'
* - /www/about.php' * - about.php'
* - /www/contact.php * - contact.php
*/ */
$current = $_SERVER['REQUEST_URI']; $current = basename($_SERVER['REQUEST_URI']);




/** /**
Expand Down

0 comments on commit c6f03f2

Please sign in to comment.