Commit 96760713 authored by Nigel McNie's avatar Nigel McNie
Browse files

Set a default title of 'Mahara' if a page doesn't have a title.

The old theme used to do this, somehow it has stopped since the new theme landed.
parent 88258903
......@@ -326,11 +326,16 @@ EOF;
$smarty->assign('THEMELIST', json_encode(array_merge((array)json_decode($smarty->get_template_vars('THEMELIST')), $theme_list)));
}
$sitename = get_config('sitename');
if (!$sitename) {
$sitename = 'Mahara';
}
if (defined('TITLE')) {
$smarty->assign('PAGETITLE', TITLE . ' - ' . get_config('sitename'));
$smarty->assign('PAGETITLE', TITLE . ' - ' . $sitename);
}
else {
$smarty->assign('PAGETITLE', get_config('sitename'));
$smarty->assign('PAGETITLE', $sitename);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment