Skip to content
Snippets Groups Projects
Commit f1023e64 authored by Gábor Hojtsy's avatar Gábor Hojtsy
Browse files

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

parent 8929612d
No related branches found
No related tags found
No related merge requests found
......@@ -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'));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment