Merge "Improve clarity of diff-multi message"
[lhc/web/wiklou.git] / includes / context / RequestContext.php
index 04879e2..978ef03 100644 (file)
@@ -63,6 +63,32 @@ class RequestContext implements IContextSource {
         */
        private $skin;
 
+       /**
+        * @var Config
+        */
+       private $config;
+
+       /**
+        * Set the Config object
+        *
+        * @param Config $c
+        */
+       public function setConfig( Config $c ) {
+               $this->config = $c;
+       }
+
+       /**
+        * Get the Config object
+        *
+        * @return Config
+        */
+       public function getConfig() {
+               if ( $this->config === null ) {
+                       $this->config = Config::factory();
+               }
+               return $this->config;
+       }
+
        /**
         * Set the WebRequest object
         *