summaryrefslogtreecommitdiffstats
path: root/core/authorize.php
diff options
context:
space:
mode:
authorAlex Pott2014-03-24 08:51:28 (GMT)
committerAlex Pott2014-03-24 08:51:28 (GMT)
commit000966e0ddce5e871db3fd0d3cfd3138d7055c5b (patch)
treec700000d530474647174859c9ad98f500d236608 /core/authorize.php
parentec5aab42f34123c6e13927e40eab0a841038e89d (diff)
Issue #2219009 by pwolanin: Improve DX of Settings class.
Diffstat (limited to 'core/authorize.php')
-rw-r--r--core/authorize.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/authorize.php b/core/authorize.php
index 8715fb0..2ddd7d6 100644
--- a/core/authorize.php
+++ b/core/authorize.php
@@ -20,7 +20,7 @@
* @link authorize Authorized operation helper functions @endlink
*/
-use Symfony\Component\HttpFoundation\Request;
+use Drupal\Component\Utility\Settings;
// Change the directory to the Drupal root.
chdir('..');
@@ -46,9 +46,9 @@ const MAINTENANCE_MODE = 'update';
* TRUE if the current user can run authorize.php, and FALSE if not.
*/
function authorize_access_allowed() {
- require_once DRUPAL_ROOT . '/' . settings()->get('session_inc', 'core/includes/session.inc');
+ require_once DRUPAL_ROOT . '/' . Settings::get('session_inc', 'core/includes/session.inc');
drupal_session_initialize();
- return settings()->get('allow_authorize_operations', TRUE) && user_access('administer software updates');
+ return Settings::get('allow_authorize_operations', TRUE) && user_access('administer software updates');
}
// *** Real work of the script begins here. ***