summaryrefslogtreecommitdiff
path: root/modules/system/system.admin.inc
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2009-06-02 06:58:17 +0000
committerDries Buytaert <dries@buytaert.net>2009-06-02 06:58:17 +0000
commite474fbbd6c57ed6de2ef4b0e826a6ba3b75a11c9 (patch)
tree85d19a7a34d41f2de22770376aae166537ae9caf /modules/system/system.admin.inc
parentec78fef144b70854d2a9b770c135960cd9ad8517 (diff)
downloadbrdo-e474fbbd6c57ed6de2ef4b0e826a6ba3b75a11c9.tar.gz
brdo-e474fbbd6c57ed6de2ef4b0e826a6ba3b75a11c9.tar.bz2
- Patch #477944 by Damien Tournoud: fix and streamline page cache and session handling.
Diffstat (limited to 'modules/system/system.admin.inc')
-rw-r--r--modules/system/system.admin.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/system/system.admin.inc b/modules/system/system.admin.inc
index 83cca4ad2..6fd477674 100644
--- a/modules/system/system.admin.inc
+++ b/modules/system/system.admin.inc
@@ -1734,7 +1734,7 @@ function system_clean_url_settings() {
// When accessing this form using a non-clean URL, allow a re-check to make
// sure clean URLs can be disabled at all times.
$available = FALSE;
- if (strpos(request_uri(), '?q=') === FALSE || drupal_get_session('clean_url')) {
+ if (strpos(request_uri(), '?q=') === FALSE || !empty($_SESSION['clean_url'])) {
$available = TRUE;
}
else {
@@ -1745,7 +1745,7 @@ function system_clean_url_settings() {
}
if ($available) {
- drupal_set_session('clean_url', TRUE);
+ $_SESSION['clean_url'] = TRUE;
$form['clean_url'] = array(
'#type' => 'checkbox',