Project

General

Profile

« Previous | Next » 

Revision 1625

Added by Dietmar over 12 years ago

! update correct_theme_source and fixed the call in all files

View differences:

class.admin.php
101 101
		$get_title = $database->query($sql);
102 102
		$title = $get_title->fetchRow();
103 103
		// Setup template object, parse vars to it, then parse it
104
		$ThemePath = realpath(WB_PATH.$this->correct_theme_source('header.htt'));
105
		$header_template = new Template($ThemePath);
104
		$header_template = new Template(dirname($this->correct_theme_source('header.htt')));
106 105
		$header_template->set_file('page', 'header.htt');
107 106
		$header_template->set_block('page', 'header_block', 'header');
108 107
		if(defined('DEFAULT_CHARSET')) {
......
196 195
		}
197 196

  
198 197
		// Setup template object, parse vars to it, then parse it
199
		$ThemePath = realpath(WB_PATH.$this->correct_theme_source('footer.htt'));
200
		$footer_template = new Template($ThemePath);
198
		$footer_template = new Template(dirname($this->correct_theme_source('footer.htt')));
201 199
		$footer_template->set_file('page', 'footer.htt');
202 200
		$footer_template->set_block('page', 'footer_block', 'header');
203 201
		$footer_template->set_var(array(

Also available in: Unified diff