Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
menu_item_extras-3001934
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Issue forks
menu_item_extras-3001934
Commits
2f8c3b68
Unverified
Commit
2f8c3b68
authored
6 years ago
by
Mykhailo Hurei
Committed by
GitHub
6 years ago
Browse files
Options
Downloads
Plain Diff
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
Tags
previous/3383905-set-field-value/2024-02-24
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/mie_demo_base/mie_demo_base.module
+1
-1
1 addition, 1 deletion
modules/mie_demo_base/mie_demo_base.module
with
1 addition
and
1 deletion
modules/mie_demo_base/mie_demo_base.module
+
1
−
1
View file @
2f8c3b68
...
...
@@ -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
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment