summaryrefslogtreecommitdiffstats
path: root/core/authorize.php
diff options
context:
space:
mode:
authorwebchick2014-06-26 18:55:12 (GMT)
committerwebchick2014-06-26 18:55:12 (GMT)
commit04bf43bb92ffa984b31e7d009b66aa4511b44075 (patch)
tree1bd679bbb54098fc8fdddf0d2a450ff64665ef7d /core/authorize.php
parentd4c697e2967da5de5b7130c60f37c168514f97a0 (diff)
Issue #2272467 by ParisLiakos: Remove usages of watchdog() from procedural code.
Diffstat (limited to 'core/authorize.php')
-rw-r--r--core/authorize.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/authorize.php b/core/authorize.php
index 96fe9ae..04c4e54 100644
--- a/core/authorize.php
+++ b/core/authorize.php
@@ -140,7 +140,7 @@ if (authorize_access_allowed()) {
}
else {
drupal_add_http_header('Status', '403 Forbidden');
- watchdog('access denied', 'authorize.php', array(), WATCHDOG_WARNING);
+ \Drupal::logger('access denied')->warning('authorize.php');
$page_title = t('Access denied');
$output = t('You are not allowed to access this page.');
}