#177421 by malex, Desbeers and chx: proper value of mission statement variable for themes

6.x
Gábor Hojtsy 2007-09-25 12:43:18 +00:00
parent 8929612d29
commit f1023e6492
1 changed files with 5 additions and 5 deletions

View File

@ -1658,11 +1658,6 @@ function template_preprocess(&$variables, $hook) {
* @see page.tpl.php
*/
function template_preprocess_page(&$variables) {
/* Set title and breadcrumb to declared values */
if (drupal_is_front_page()) {
$variables['mission'] = filter_xss_admin(theme_get_setting('mission'));
}
/* Add favicon */
if (theme_get_setting('toggle_favicon')) {
drupal_set_html_head('<link rel="shortcut icon" href="'. check_url(theme_get_setting('favicon')) .'" type="image/x-icon" />');
@ -1693,6 +1688,11 @@ function template_preprocess_page(&$variables) {
$variables['layout'] = ($variables['layout'] == 'left') ? 'both' : 'right';
}
// Set mission when viewing the frontpage.
if (drupal_is_front_page()) {
$mission = filter_xss_admin(theme_get_setting('mission'));
}
// Construct page title
if (drupal_get_title()) {
$head_title = array(strip_tags(drupal_get_title()), variable_get('site_name', 'Drupal'));