add tests for {{#special:}}
[lhc/web/wiklou.git] / includes / WikiError.php
index 46738fc..1b2c03b 100644 (file)
@@ -3,20 +3,20 @@
  * MediaWiki error classes
  * Copyright (C) 2005 Brion Vibber <brion@pobox.com>
  * http://www.mediawiki.org/
- * 
+ *
  * 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
- * the Free Software Foundation; either version 2 of the License, or 
+ * the Free Software Foundation; either version 2 of the License, or
  * (at your option) any later version.
- * 
+ *
  * This program is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  * GNU General Public License for more details.
- * 
+ *
  * You should have received a copy of the GNU General Public License along
  * with this program; if not, write to the Free Software Foundation, Inc.,
- * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  * http://www.gnu.org/copyleft/gpl.html
  *
  * @package MediaWiki
@@ -34,14 +34,14 @@ class WikiError {
        function WikiError( $message ) {
                $this->mMessage = $message;
        }
-       
+
        /**
         * @return string Plaintext error message to display
         */
        function getMessage() {
                return $this->mMessage;
        }
-       
+
        /**
         * In following PEAR_Error model this could be formatted differently,
         * but so far it's not.
@@ -50,7 +50,7 @@ class WikiError {
        function toString() {
                return $this->getMessage();
        }
-       
+
        /**
         * Returns true if the given object is a WikiError-descended
         * error object, false otherwise.
@@ -100,7 +100,7 @@ class WikiXmlError extends WikiError {
                wfDebug( "WikiXmlError: " . $this->getMessage() . "\n" );
        }
 
-       /** @return string */   
+       /** @return string */
        function getMessage() {
                return sprintf( '%s at line %d, col %d (byte %d%s): %s',
                        $this->mMessage,
@@ -110,7 +110,7 @@ class WikiXmlError extends WikiError {
                        $this->mContext,
                        xml_error_string( $this->mXmlError ) );
        }
-       
+
        function _extractContext( $context, $offset ) {
                if( is_null( $context ) ) {
                        return null;