Merge "EnhancedChangesList: Add missing </td></tr>"
[lhc/web/wiklou.git] / includes / api / ApiFormatRaw.php
index e1e06e2..45003e9 100644 (file)
@@ -1,10 +1,10 @@
 <?php
 /**
- * API for MediaWiki 1.8+
+ *
  *
  * Created on Feb 2, 2009
  *
- * Copyright © 2009 Roan Kattouw <Firstname>.<Lastname>@gmail.com
+ * Copyright © 2009 Roan Kattouw "<Firstname>.<Lastname>@gmail.com"
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
  * @file
  */
 
-if ( !defined( 'MEDIAWIKI' ) ) {
-       // Eclipse helper - will be ignored in production
-       require_once( 'ApiFormatBase.php' );
-}
-
 /**
  * Formatter that spits out anything you like with any desired MIME type
  * @ingroup API
@@ -38,7 +33,7 @@ class ApiFormatRaw extends ApiFormatBase {
        /**
         * Constructor
         * @param $main ApiMain object
-        * @param $errorFallback Formatter object to fall back on for errors
+        * @param $errorFallback ApiFormatBase object to fall back on for errors
         */
        public function __construct( $main, $errorFallback ) {
                parent::__construct( $main, 'raw' );
@@ -63,6 +58,7 @@ class ApiFormatRaw extends ApiFormatBase {
                $data = $this->getResultData();
                if ( isset( $data['error'] ) ) {
                        $this->mErrorFallback->execute();
+
                        return;
                }
 
@@ -71,8 +67,4 @@ class ApiFormatRaw extends ApiFormatBase {
                }
                $this->printText( $data['text'] );
        }
-
-       public function getVersion() {
-               return __CLASS__ . ': $Id$';
-       }
 }