summaryrefslogtreecommitdiffstats
path: root/core/authorize.php
diff options
context:
space:
mode:
authorAlex Pott2014-09-29 13:41:29 (GMT)
committerAlex Pott2014-09-29 13:41:29 (GMT)
commit4f49087b71360cf0fabe409e3bf8fd6fbf5465c1 (patch)
tree174ff4753338a0a4a50c6da94b298ffcaacaf241 /core/authorize.php
parentf085b7b698d8d7f4999e91079876a2ef4f7d2650 (diff)
Issue #2277103 by tim.plunkett, pwolanin, Wim Leers, dawehner, hotpizzas: Switch Drupal::l() and LinkGenerator to expect a Url object.
Diffstat (limited to 'core/authorize.php')
-rw-r--r--core/authorize.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/core/authorize.php b/core/authorize.php
index 8b44e36..0188cf8 100644
--- a/core/authorize.php
+++ b/core/authorize.php
@@ -21,6 +21,7 @@
*/
use Drupal\Core\DrupalKernel;
+use Drupal\Core\Url;
use Symfony\Component\HttpFoundation\Request;
use Drupal\Core\Site\Settings;
use Drupal\Core\Page\DefaultHtmlPageRenderer;
@@ -109,8 +110,8 @@ if (authorize_access_allowed()) {
}
else {
$links = array_merge($links, array(
- \Drupal::l(t('Administration pages'), 'system.admin'),
- \Drupal::l(t('Front page'), '<front>'),
+ \Drupal::l(t('Administration pages'), new Url('system.admin')),
+ \Drupal::l(t('Front page'), new Url('<front>')),
));
}