Template changes weren't the ones I intended to land. Hopefully this fixes it.

This commit is contained in:
robert%accettura.com 2006-01-20 04:48:19 +00:00
parent ff4c73401a
commit f15416364c
2 changed files with 6 additions and 1 deletions

View File

@ -56,6 +56,9 @@ $config['db_pass'] = 'PASSWORD';
$config['db_database'] = 'DATABASE';
$config['db_dsn'] = $config['db_type'].'://'.$config['db_user'].':'.$config['db_pass'].'@'.$config['db_server'].'/'.$config['db_database'];
// Theme
$config['theme'] = 'mozilla';
// Smarty Configurations
$config['smarty_template_directory'] = $config['base_path'].'/templates/';
$config['smarty_compile_dir'] = '/tmp';

View File

@ -71,11 +71,13 @@ function templateStandardVars($object){
}
function displayPage($object, $path, $objectTemplate, $title = 'Mozilla Reporter'){
global $config;
$page = initializeTemplate();
$page->assign('content', $object->fetch($objectTemplate));
$page->assign('title', $title);
$page->assign('path', $path);
$page->display('layout.tpl');
$page->display($config['theme'].'/layout.tpl');
return;
}
function strMiddleReduceWordSensitive($string, $max = 50, $rep = '[...]') {