various eol whitespace now instead of when someone needs to do CR
[lhc/web/wiklou.git] / includes / api / ApiFormatBase.php
index 7803d8c..a6d6893 100644 (file)
@@ -101,11 +101,11 @@ abstract class ApiFormatBase extends ApiBase {
        public function getIsHtml() {
                return $this->mIsHtml;
        }
-       
+
        /**
         * Whether this formatter can format the help message in a nice way.
         * By default, this returns the same as getIsHtml().
-        * When action=help is set explicitly, the help will always be shown 
+        * When action=help is set explicitly, the help will always be shown
         * @return bool
         */
        public function getWantsHelp() {
@@ -189,6 +189,7 @@ See <a href='http://www.mediawiki.org/wiki/API'>complete documentation</a>, or
         * @param $text string
         */
        public function printText( $text ) {
+               error_log($text);
                if ( $this->mBufferResult ) {
                        $this->mBuffer = $text;
                } elseif ( $this->getIsHtml() ) {
@@ -205,7 +206,7 @@ See <a href='http://www.mediawiki.org/wiki/API'>complete documentation</a>, or
                        echo $text;
                }
        }
-       
+
        /**
         * Get the contents of the buffer.
         */
@@ -235,7 +236,7 @@ See <a href='http://www.mediawiki.org/wiki/API'>complete documentation</a>, or
        */
        protected function formatHTML( $text ) {
                global $wgUrlProtocols;
-               
+
                // Escape everything first for full coverage
                $text = htmlspecialchars( $text );