Move PasswordError under includes/password/ file
authorwithoutaname <drevitchi@gmail.com>
Tue, 29 Jul 2014 09:07:50 +0000 (02:07 -0700)
committerwithoutaname <drevitchi@gmail.com>
Tue, 29 Jul 2014 09:07:50 +0000 (02:07 -0700)
Change-Id: I7256325492b2f6451223714efb8b3e07fca9ee3e

includes/AutoLoader.php
includes/User.php
includes/password/PasswordError.php [new file with mode: 0644]

index 905050d..9fa0c13 100644 (file)
@@ -130,7 +130,6 @@ $wgAutoloadLocalClasses = array(
        'MWNamespace' => 'includes/MWNamespace.php',
        'OutputPage' => 'includes/OutputPage.php',
        'Pager' => 'includes/Pager.php',
-       'PasswordError' => 'includes/User.php',
        'PathRouter' => 'includes/PathRouter.php',
        'PathRouterPatternReplacer' => 'includes/PathRouter.php',
        'PhpHttpRequest' => 'includes/HttpFunctions.php',
@@ -836,6 +835,7 @@ $wgAutoloadLocalClasses = array(
        'MWOldPassword' => 'includes/password/MWOldPassword.php',
        'ParameterizedPassword' => 'includes/password/ParameterizedPassword.php',
        'Password' => 'includes/password/Password.php',
+       'PasswordError' => 'includes/password/PasswordError.php',
        'PasswordFactory' => 'includes/password/PasswordFactory.php',
        'Pbkdf2Password' => 'includes/password/Pbkdf2Password.php',
        'EncryptedPassword' => 'includes/password/EncryptedPassword.php',
index 73d4959..a887e36 100644 (file)
@@ -38,14 +38,6 @@ define( 'MW_USER_VERSION', 10 );
  */
 define( 'EDIT_TOKEN_SUFFIX', '+\\' );
 
-/**
- * Thrown by User::setPassword() on error.
- * @ingroup Exception
- */
-class PasswordError extends MWException {
-       // NOP
-}
-
 /**
  * The User object encapsulates all of the user-specific settings (user_id,
  * name, rights, password, email address, options, last login time). Client
diff --git a/includes/password/PasswordError.php b/includes/password/PasswordError.php
new file mode 100644 (file)
index 0000000..c9707ad
--- /dev/null
@@ -0,0 +1,28 @@
+<?php
+/**
+ * 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
+ * (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.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ * http://www.gnu.org/copyleft/gpl.html
+ *
+ * @file
+ */
+
+/**
+ * Show an error when any operation involving passwords fails to run.
+ *
+ * @ingroup Exception
+ */
+class PasswordError extends MWException {
+       // NOP
+}