From c2710a9635b88503637aa8d5c6c4211b3b1d3b1d Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Sat, 9 Jul 2011 19:38:58 +0000 Subject: [PATCH] Added Request::setLang() and RequestContext::setSkin(); the latter will clone the object and set the context on it. --- includes/RequestContext.php | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/includes/RequestContext.php b/includes/RequestContext.php index 48cca17db1..f26847e452 100644 --- a/includes/RequestContext.php +++ b/includes/RequestContext.php @@ -125,6 +125,15 @@ class RequestContext { return $this->user; } + /** + * Set the Language object + * + * @param $l Language + */ + public function setLang( Language $l ) { + $this->lang = $l; + } + /** * Get the Language object * @@ -158,6 +167,16 @@ class RequestContext { return $this->lang; } + /** + * Set the Skin object + * + * @param $s Skin + */ + public function setSkin( Skin $s ) { + $this->skin = clone $s; + $this->skin->setContext( $this ); + } + /** * Get the Skin object * -- 2.20.1