Skip to content

Commit

Permalink
fixed template paths ;)
Browse files Browse the repository at this point in the history
  • Loading branch information
neek committed Sep 23, 2010
1 parent e39cdc6 commit 33a40d0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions baselibs/Misc.php
Expand Up @@ -134,6 +134,7 @@ function GetPage($settings) {
}
$pages[0]->SkinIndex($pages);
$page = $pages[0];
print_r($pages);
break;

default:
Expand Down
4 changes: 2 additions & 2 deletions baselibs/Page.php
Expand Up @@ -60,10 +60,10 @@ class Page

function __construct($keyword,$special=false,$advertisment=null,$empty=false) //$title,$content,$h1,$h2,$last,$next,$navlinks)
{
if(!file_exists("templates/site.html")) {
if(!file_exists(sprintf('templates/%s/site.html',OpenBHConf::get('template')))) {
return false;
}
$this->template = file_get_contents("templates/site.html");
$this->template = file_get_contents(sprintf('templates/%s/site.html',OpenBHConf::get('template')));

$this->advertisment = $advertisment;

Expand Down

0 comments on commit 33a40d0

Please sign in to comment.