http://www.mediawiki.org/wiki/Special:Code/MediaWiki/90911

Revision: 90911
Author:   reedy
Date:     2011-06-27 21:48:37 +0000 (Mon, 27 Jun 2011)
Log Message:
-----------
Fix get/set accessors from request context stuffs

Modified Paths:
--------------
    trunk/extensions/StyleGuideDemo/HTMLStyleForm.php

Modified: trunk/extensions/StyleGuideDemo/HTMLStyleForm.php
===================================================================
--- trunk/extensions/StyleGuideDemo/HTMLStyleForm.php   2011-06-27 21:43:54 UTC 
(rev 90910)
+++ trunk/extensions/StyleGuideDemo/HTMLStyleForm.php   2011-06-27 21:48:37 UTC 
(rev 90911)
@@ -534,7 +534,7 @@
                        ), $errorstr );
                        return Html::rawElement( 'div', array(
                                'class' => 'mw-htmlform-errors'
-                       ), $errorTitle . $errorContent );       
+                       ), $errorTitle . $errorContent );
                } else {
                        return '';
                }
@@ -638,7 +638,7 @@
         */
        function getTitle() {
                return $this->mTitle === false
-                       ? $this->getContext()->title
+                       ? $this->getContext()->getTitle()
                        : $this->mTitle;
        }
 
@@ -655,21 +655,21 @@
         * @return OutputPage
         */
        public function getOutput(){
-               return $this->getContext()->output;
+               return $this->getContext()->getOutput();
        }
 
        /**
         * @return WebRequest
         */
        public function getRequest(){
-               return $this->getContext()->request;
+               return $this->getContext()->getRequest();
        }
 
        /**
         * @return User
         */
        public function getUser(){
-               return $this->getContext()->user;
+               return $this->getContext()->getUser();
        }
 
        /**


_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to