Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
supermonitoring
Commits
193feea7
Commit
193feea7
authored
Nov 25, 2021
by
siteimpulse
Browse files
Fix Warning Issue
parent
bc9d50d4
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/Controller/SupermonitoringController.php
View file @
193feea7
...
...
@@ -67,9 +67,7 @@ class SupermonitoringController extends ControllerBase {
if
(
$token
==
NULL
||
empty
(
$token
))
{
$url
=
Url
::
fromRoute
(
'supermonitoring_settings.admin'
);
$link
=
\
Drupal
::
l
(
t
(
'Configuration > User Interface > Super Monitoring'
),
$url
);
$output
=
t
(
"Go to the configuration and enter your token "
.
$link
);
$output
=
t
(
"Go to the configuration and enter your token "
)
.
'<a href="'
.
$url
->
toString
()
.
'">Configuration > User Interface > Super Monitoring</a>'
;
}
else
{
$output
=
'<iframe id="frame" width="100%" frameborder="0" src="'
.
$service_domain
.
'index.php?wp_token='
.
$token
.
'&cms=drupal"></iframe>'
;
...
...
@@ -86,9 +84,7 @@ class SupermonitoringController extends ControllerBase {
if
(
$token
==
NULL
||
empty
(
$token
))
{
$url
=
Url
::
fromRoute
(
'supermonitoring_settings.admin'
);
$link
=
\
Drupal
::
l
(
t
(
'Configuration > User Interface > Super Monitoring'
),
$url
);
$output
=
t
(
"Go to the configuration and enter your token "
.
$link
);
$output
=
t
(
"Go to the configuration and enter your token "
)
.
'<a href="'
.
$url
->
toString
()
.
'">Configuration > User Interface > Super Monitoring</a>'
;
}
else
{
$output
=
'<iframe id="frame" width="100%" frameborder="0" src="'
.
$service_domain
.
'index.php?wp_token='
.
$token
.
'&cms=drupal&s=settings"></iframe>'
;
...
...
@@ -105,9 +101,7 @@ class SupermonitoringController extends ControllerBase {
if
(
$token
==
NULL
||
empty
(
$token
))
{
$url
=
Url
::
fromRoute
(
'supermonitoring_settings.admin'
);
$link
=
\
Drupal
::
l
(
t
(
'Configuration > User Interface > Super Monitoring'
),
$url
);
$output
=
t
(
"Go to the configuration and enter your token "
.
$link
);
$output
=
t
(
"Go to the configuration and enter your token "
)
.
'<a href="'
.
$url
->
toString
()
.
'">Configuration > User Interface > Super Monitoring</a>'
;
}
else
{
$output
=
'<iframe id="frame" width="100%" frameborder="0" src="'
.
$service_domain
.
'index.php?wp_token='
.
$token
.
'&cms=drupal&s=contacts"></iframe>'
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment