Browse Source

Found issue of default_page overiding main page

pull/24/head
Teknikode 8 years ago
parent
commit
58e201ccc1
  1. 8
      includes/common.php
  2. 1
      templates/default/header.php

8
includes/common.php

@ -77,14 +77,14 @@ function get_http($CONF) @@ -77,14 +77,14 @@ function get_http($CONF)
function get_active($page)
{
if ($page == $CONF['default_page'])
{
$page = 'www';
}
$cur_page = '';
switch ($CONF['url_type'])
{
case 'sub':
if ($page == $CONF['default_page'])
{
$page = 'www';
}
$cur_page = get_subdomain();
break;
case 'page':

1
templates/default/header.php

@ -204,7 +204,6 @@ @@ -204,7 +204,6 @@
<link href="<?php echo get_page_url("cdn", $CONF); ?>/<?php echo $CONF['template']; ?>/css/<?php echo $file; ?>" rel="stylesheet" />
<?php
}
echo get_page();
?>
<!--<link href="<?php echo get_page_url("cdn", $CONF); ?>/<?php echo $CONF['template']; ?>/cache/css/<?php echo $CONF['page']; ?>.teknik.min.css" rel="stylesheet" />-->
<script src="<?php echo get_page_url("cdn", $CONF); ?>/<?php echo $CONF['template']; ?>/cache/js/<?php echo $CONF['page']; ?>.teknik.min.js"></script>

Loading…
Cancel
Save