X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FDerivativeRequest.php;h=e2d59b080cbf247d0c48db22c2570d24c66fb4bd;hb=b00ce7312209b885ceefe37b710931eef8f8d901;hp=dda1358f11abf5cdbbaffa5f3f255a04d4f1f479;hpb=f8e44b8b113f9f9d1d09412f082f36000cfde379;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/DerivativeRequest.php b/includes/DerivativeRequest.php index dda1358f11..e2d59b080c 100644 --- a/includes/DerivativeRequest.php +++ b/includes/DerivativeRequest.php @@ -33,6 +33,7 @@ */ class DerivativeRequest extends FauxRequest { private $base; + private $ip; /** * @param WebRequest $base @@ -49,10 +50,6 @@ class DerivativeRequest extends FauxRequest { return $this->base->getCookie( $key, $prefix, $default ); } - public function checkSessionCookie() { - return $this->base->checkSessionCookie(); - } - public function getHeader( $name, $flags = 0 ) { return $this->base->getHeader( $name, $flags ); } @@ -61,6 +58,10 @@ class DerivativeRequest extends FauxRequest { return $this->base->getAllHeaders(); } + public function getSession() { + return $this->base->getSession(); + } + public function getSessionData( $key ) { return $this->base->getSessionData( $key ); } @@ -74,7 +75,11 @@ class DerivativeRequest extends FauxRequest { } public function getIP() { - return $this->base->getIP(); + return $this->ip ?: $this->base->getIP(); + } + + public function setIP( $ip ) { + $this->ip = $ip; } public function getProtocol() {