From bf244b740fbc7c14ef4f5aaa3b0716e249577057 Mon Sep 17 00:00:00 2001 From: Chad Horohoe Date: Fri, 21 Nov 2008 09:01:26 +0000 Subject: [PATCH] This should probably be in Response, not Request, as we're setting data, not getting it. Nothing's using it yet (fairly new), so nothing to update. --- includes/WebRequest.php | 6 ------ includes/WebResponse.php | 4 ++++ 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/includes/WebRequest.php b/includes/WebRequest.php index 467471250d..c3c1d89dad 100644 --- a/includes/WebRequest.php +++ b/includes/WebRequest.php @@ -658,9 +658,6 @@ class WebRequest { return null; return $_SESSION[$key]; } - function setSessionData( $key, $data ) { - $_SESSION[$key] = $data; - } } /** @@ -725,8 +722,5 @@ class FauxRequest extends WebRequest { return null; return $this->session[$key]; } - function setSessionData( $key, $data ) { - $this->notImplemented( __METHOD__ ); - } } diff --git a/includes/WebResponse.php b/includes/WebResponse.php index 09d373850f..19feadd426 100644 --- a/includes/WebResponse.php +++ b/includes/WebResponse.php @@ -57,4 +57,8 @@ class WebResponse { $wgCookieSecure ); } } + + public function setSessionData( $key, $data ) { + $_SESSION[$key] = $data; + } } -- 2.20.1