- fix loading version number from renamed internal assets
- remove various php notice/warnings from the webserver logs
This commit is contained in:
Jon Atkins
2013-05-03 05:39:54 +01:00
parent 48a7a688f8
commit 9575e4b4c2
4 changed files with 24 additions and 13 deletions

View File

@ -86,7 +86,9 @@ $pages = Array (
'donate' => '<i class="icon-gift"></i> Donate',
);
$page = $_REQUEST['page'];
$page = 'home';
if ( array_key_exists ( 'page', $_REQUEST ) )
$page = $_REQUEST['page'];
if ( ! array_key_exists ( $page, $pages ) )
$page = "home";