Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
Drupal Upstream
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Analyze
Value stream analytics
Contributor analytics
Repository analytics
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
ASC IRIS Web Services
Drupal Upstream
Commits
79fc9048
Commit
79fc9048
authored
6 years ago
by
bcweaver
Browse files
Options
Downloads
Patches
Plain Diff
Get rid of annoying "undefined index: hidden" notices
parent
4bce7ddd
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
composer.json
+3
-0
3 additions, 0 deletions
composer.json
vendor/composer/installed.json
+3
-0
3 additions, 0 deletions
vendor/composer/installed.json
web/modules/block_permissions/src/BlockPermissionsPermissions.php
+1
-1
1 addition, 1 deletion
...les/block_permissions/src/BlockPermissionsPermissions.php
with
7 additions
and
1 deletion
composer.json
+
3
−
0
View file @
79fc9048
...
@@ -236,6 +236,9 @@
...
@@ -236,6 +236,9 @@
},
},
"drupal/addtocalendar"
:
{
"drupal/addtocalendar"
:
{
"UTC Time Adjustment"
:
"patches/utc-time-adjustment.patch"
"UTC Time Adjustment"
:
"patches/utc-time-adjustment.patch"
},
"drupal/block_permissions"
:
{
"2962965"
:
"https://www.drupal.org/files/issues/2018-09-01/block-permissions-2962965-4.patch"
}
}
}
}
},
},
...
...
This diff is collapsed.
Click to expand it.
vendor/composer/installed.json
+
3
−
0
View file @
79fc9048
...
@@ -1710,6 +1710,9 @@
...
@@ -1710,6 +1710,9 @@
"status"
:
"covered"
,
"status"
:
"covered"
,
"message"
:
"Covered by Drupal's security advisory policy"
"message"
:
"Covered by Drupal's security advisory policy"
}
}
},
"patches_applied"
:
{
"2962965"
:
"https://www.drupal.org/files/issues/2018-09-01/block-permissions-2962965-4.patch"
}
}
},
},
"installation-source"
:
"dist"
,
"installation-source"
:
"dist"
,
...
...
This diff is collapsed.
Click to expand it.
web/modules/block_permissions/src/BlockPermissionsPermissions.php
+
1
−
1
View file @
79fc9048
...
@@ -63,7 +63,7 @@ public function permissions() {
...
@@ -63,7 +63,7 @@ public function permissions() {
// administration per theme.
// administration per theme.
$themes
=
$this
->
themeHandler
->
listInfo
();
$themes
=
$this
->
themeHandler
->
listInfo
();
foreach
(
$themes
as
$key
=>
$theme
)
{
foreach
(
$themes
as
$key
=>
$theme
)
{
if
(
$theme
->
status
==
1
&&
$theme
->
info
[
'hidden'
]
!=
1
)
{
if
(
isset
(
$theme
->
info
[
'hidden'
])
&&
$theme
->
status
==
1
&&
$theme
->
info
[
'hidden'
]
!=
1
)
{
$permissions
[
'administer block settings for theme '
.
$key
]
=
[
$permissions
[
'administer block settings for theme '
.
$key
]
=
[
'title'
=>
$this
->
t
(
'Administer block settings for the theme @label'
,
[
'@label'
=>
ucfirst
(
$theme
->
getName
())]),
'title'
=>
$this
->
t
(
'Administer block settings for the theme @label'
,
[
'@label'
=>
ucfirst
(
$theme
->
getName
())]),
'description'
=>
$this
->
t
(
'This permission s the administer blocks permission.'
),
'description'
=>
$this
->
t
(
'This permission s the administer blocks permission.'
),
...
...
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