Made user global constants class constants so that autoloader magic can be used.
authorBryan Tong Minh <btongminh@users.mediawiki.org>
Sun, 5 Sep 2010 13:16:23 +0000 (13:16 +0000)
committerBryan Tong Minh <btongminh@users.mediawiki.org>
Sun, 5 Sep 2010 13:16:23 +0000 (13:16 +0000)
includes/User.php

index bb98175..eee0684 100644 (file)
@@ -41,6 +41,13 @@ class PasswordError extends MWException {
  * of the database.
  */
 class User {
+       /**
+        * Global constants made accessable as class constants so that autoloader
+        * magic can be used.
+        */
+       const USER_TOKEN_LENGTH = USER_TOKEN_LENGTH;
+       const MW_USER_VERSION = MW_USER_VERSION;
+       const EDIT_TOKEN_SUFFIX = EDIT_TOKEN_SUFFIX;
 
        /**
         * \type{\arrayof{\string}} List of member variables which are saved to the