diff --git a/omega/template.php b/omega/template.php index c4c76dd..0aa6266 100644 --- a/omega/template.php +++ b/omega/template.php @@ -166,6 +166,18 @@ function omega_alpha_process_region(&$vars) { if (in_array($vars['elements']['#region'], array('content', 'menu', 'branding'))) { $theme = alpha_get_theme(); + if (!isset($theme->page)) { + if ($vars['elements']['#region'] == 'content') { + $vars += array( + 'title' => '', + 'action_links' => '', + 'tabs' => '', + 'feed_icons' => '', + ); + } + return; + } + switch ($vars['elements']['#region']) { case 'content': $vars['title_prefix'] = $theme->page['title_prefix']; @@ -203,6 +215,14 @@ function omega_alpha_process_zone(&$vars) { $theme = alpha_get_theme(); if ($vars['elements']['#zone'] == 'content') { + if (!isset($theme->page)) { + $vars += array( + 'messages' => '', + 'breadcrumb' => '', + ); + return; + } + $vars['messages'] = $theme->page['messages']; $vars['breadcrumb'] = $theme->page['breadcrumb']; } @@ -232,4 +252,4 @@ function omega_alpha_preprocess_block(&$vars) { } } } -} \ No newline at end of file +}