Follow-up r85278, r85240:
[lhc/web/wiklou.git] / includes / RequestContext.php
index 503f9b8..c78c112 100644 (file)
@@ -10,7 +10,7 @@
 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
@@ -59,6 +59,15 @@ class RequestContext {
                return $this->title;
        }
 
+       /**
+        * Set the OutputPage object
+        *
+        * @param $u OutputPage
+        */
+       public function setOutput( OutputPage $u ) {
+               $this->output = $u;
+       }
+
        /**
         * Get the OutputPage object
         *
@@ -160,8 +169,8 @@ class RequestContext {
         * @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 **/
@@ -178,6 +187,5 @@ class RequestContext {
                }
                return $instance;
        }
-
 }