Browse Source

Fixed get_page()

pull/24/head
Teknikode 8 years ago
parent
commit
58760060bd
  1. 4
      includes/common.php
  2. 2
      templates/default/header.php

4
includes/common.php

@ -59,9 +59,9 @@ function get_page() @@ -59,9 +59,9 @@ function get_page()
{
$full_page = $_SERVER['REQUEST_URI'];
$parts = explode("/", $full_page);
if (count($parts) > 0)
if (count($parts) > 1)
{
return $parts[0];
return $parts[1];
}
return "";
}

2
templates/default/header.php

@ -20,8 +20,6 @@ @@ -20,8 +20,6 @@
// Global JS Files //
array_push($jsFiles, 'jquery/1.10.2/jquery.min.js', 'common.js', 'bootstrap/bootstrap.min.js', 'bootstrap/select/bootstrap-select.js');
echo $CONF['page'];
echo $_SERVER['REQUEST_URI'];
// Service Specific Files //
switch ($CONF['page'])
{

Loading…
Cancel
Save