From: Chad Horohoe Date: Fri, 21 Nov 2008 09:01:26 +0000 (+0000) Subject: This should probably be in Response, not Request, as we're setting data, not getting... X-Git-Tag: 1.31.0-rc.0~44236 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=bf244b740fbc7c14ef4f5aaa3b0716e249577057;p=lhc%2Fweb%2Fwiklou.git 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. --- 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; + } }