File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -263,10 +263,10 @@ function megatron_process_block(&$variables, $hook) {
263263function megatron_preprocess_page (&$ variables ) {
264264 // Define CLF page elements in an include
265265 include_once 'includes/template-ubc-clf-elements.inc ' ;
266- // Add template suggestions based on content type
267- if (isset ($ variables ['node ' ])) {
266+ // Add template suggestions based on content type.
267+ if (isset ($ variables ['node ' ]-> type )) {
268268 //$variables['theme_hook_suggestions'][] = 'page' . theme_get_setting('clf_layout') . '';
269- $ variables ['theme_hook_suggestions ' ][] = 'page__type__ ' . $ variables ['node ' ]->type ;
269+ $ variables ['theme_hook_suggestions ' ][] = 'page__type__ ' . $ variables ['node ' ]->type ;
270270 }
271271
272272 // Add information about the number of sidebars.
You can’t perform that action at this time.
0 commit comments