Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
private_message-3099166
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
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
private_message-3099166
Commits
e48eb19d
Commit
e48eb19d
authored
6 years ago
by
Jay Friendly
Browse files
Options
Downloads
Patches
Plain Diff
Fixing notice showing up in the logs
parent
57e845b2
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/private_message_nodejs/src/Plugin/PrivateMessageConfigForm/PrivateMessageNodeJsPrivateMessageConfigForm.php
+3
-3
3 additions, 3 deletions
...nfigForm/PrivateMessageNodeJsPrivateMessageConfigForm.php
with
3 additions
and
3 deletions
modules/private_message_nodejs/src/Plugin/PrivateMessageConfigForm/PrivateMessageNodeJsPrivateMessageConfigForm.php
+
3
−
3
View file @
e48eb19d
...
...
@@ -11,7 +11,7 @@ use Drupal\private_message\Plugin\PrivateMessageConfigForm\PrivateMessageConfigF
use
Symfony\Component\DependencyInjection\ContainerInterface
;
/**
* Adds Private Message Nodejs
e
settings to the Private Message settings page.
* Adds Private Message Nodejs settings to the Private Message settings page.
*
* @PrivateMessageConfigForm(
* id = "private_message_node_js_settings",
...
...
@@ -195,8 +195,8 @@ class PrivateMessageNodeJsPrivateMessageConfigForm extends PrivateMessageConfigF
// If the user uploaded a icon, save it to a permanent location and set it
// as the icon path.
$fid
=
$values
[
'browser_push_notifications'
][
'browser_notification_settings_wrapper'
][
'browser_notification_icon_upload'
][
0
];
if
(
!
empty
(
$fid
)
)
{
$fid
=
isset
(
$values
[
'browser_push_notifications'
][
'browser_notification_settings_wrapper'
][
'browser_notification_icon_upload'
][
0
]
)
?
$values
[
'browser_push_notifications'
][
'browser_notification_settings_wrapper'
][
'browser_notification_icon_upload'
][
0
]
:
FALSE
;
if
(
$fid
)
{
$file
=
$this
->
fileHandler
->
load
(
$fid
);
$filename
=
file_unmanaged_copy
(
$file
->
getFileUri
());
$settings
->
set
(
'browser_notification_icon'
,
$filename
);
...
...
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