mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-12 02:31:41 +00:00
Template changes weren't the ones I intended to land. Hopefully this fixes it.
This commit is contained in:
parent
ff4c73401a
commit
f15416364c
@ -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';
|
||||
|
@ -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 = '[...]') {
|
||||
|
Loading…
x
Reference in New Issue
Block a user