Commit 193feea7 authored by siteimpulse's avatar siteimpulse
Browse files

Fix Warning Issue

parent bc9d50d4
......@@ -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 . '&amp;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 . '&amp;cms=drupal&amp;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 . '&amp;cms=drupal&amp;s=contacts"></iframe>';
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment