class RequestContext {
private $request; /// WebRequest object
private $title; /// Title object
- private $out; /// OutputPage object
+ private $output; /// OutputPage object
private $user; /// User object
private $lang; /// Language object
private $skin; /// Skin object
return $this->title;
}
+ /**
+ * Set the OutputPage object
+ *
+ * @param $u OutputPage
+ */
+ public function setOutput( OutputPage $u ) {
+ $this->output = $u;
+ }
+
/**
* Get the OutputPage object
*
* @return Message object
*/
public function msg() {
- $args = function_get_args();
- return call_user_func_array( 'wfMessage', $args )->inLanguage( $this->getLang() )->outputPage( $this->getOut() );
+ $args = func_get_args();
+ return call_user_func_array( 'wfMessage', $args )->inLanguage( $this->getLang() );
}
/** Static methods **/
}
return $instance;
}
-
}