Simplify configure_theme and get_theme

This commit is contained in:
Stéphane Goetz
2015-04-22 14:05:37 +02:00
committed by Stéphane Goetz
parent c79c692042
commit 2c228273fb
5 changed files with 30 additions and 76 deletions

View File

@ -22,8 +22,6 @@ class Generator {
private function recursive_generate_static($tree, $output_dir, $params, $base_url = '') {
$params['base_url'] = $params['base_page'] = $base_url;
$new_params = $params;
//changed this as well in order for the templates to be put in the right place
$params['theme'] = Helper::rebase_theme($params['theme'], $base_url, $params['base_url'] . "templates/default/themes/" . $params['theme']['name'] . '/');
//
$params['image'] = str_replace('<base_url>', $base_url, $params['image']);
if ($base_url !== '') $params['entry_page'] = $tree->first_page;
@ -41,6 +39,4 @@ class Generator {
}
}
}
}