diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-04-03 17:41:32 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-04-03 17:41:32 +0000 |
commit | ce4df7b66b9b7475b28eaaf3ca92f043f511cf3e (patch) | |
tree | 76f860216ba376ac3fb9a6e59cb710046a04faf1 /includes/session.inc | |
parent | 238c2a61e6337c6cca094a06ee90667c2ada5988 (diff) | |
download | brdo-ce4df7b66b9b7475b28eaaf3ca92f043f511cf3e.tar.gz brdo-ce4df7b66b9b7475b28eaaf3ca92f043f511cf3e.tar.bz2 |
- Patch #422374 by JamesAn: convert to use the new static caching API.
Diffstat (limited to 'includes/session.inc')
-rw-r--r-- | includes/session.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/session.inc b/includes/session.inc index aa06db4ca..e6bcde173 100644 --- a/includes/session.inc +++ b/includes/session.inc @@ -169,7 +169,7 @@ function _sess_write($key, $value) { * TRUE if session has already been started, or FALSE if it has not. */ function drupal_session_start($start = TRUE) { - static $started = FALSE; + $started = &drupal_static(__FUNCTION__, FALSE); if ($start && !$started) { $started = TRUE; session_start(); @@ -329,7 +329,7 @@ function _sess_gc($lifetime) { * FALSE if writing session data has been disabled. Otherwise, TRUE. */ function drupal_save_session($status = NULL) { - static $save_session = TRUE; + $save_session = &drupal_static(__FUNCTION__, TRUE); if (isset($status)) { $save_session = $status; } |