Skip to content
Snippets Groups Projects
Unverified Commit 2f8c3b68 authored by Mykhailo Hurei's avatar Mykhailo Hurei Committed by GitHub
Browse files

Merge pull request #143 from ozin7/issue/142

Fix fatal error when devel is enabled and MIE Demo
parents 0bc04454 0d3f4e27
No related branches found
No related merge requests found
......@@ -57,7 +57,7 @@ function mie_demo_base_preprocess(&$variables, $hook, &$info) {
$menu_link_content = $variables['elements']['#menu_link_content'];
$sanitized_view_mode = strtr($variables['elements']['#view_mode'], '.', '_');
if (substr($info['theme path'], 0, 7) != 'themes/') {
if (substr($info['theme path'], 0, 7) !== 'themes/' && $menu_link_content->getMenuName() === 'mie-demo-base-menu') {
$info['theme path'] = $module_path;
$info['path'] = $module_path . '/templates';
$info['template'] = 'menu-link-content--' . $menu_link_content->getMenuName() . '--' . $sanitized_view_mode;
......
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