From a502ecd52e9515787a60c442834c27bc46001306 Mon Sep 17 00:00:00 2001 From: Bryan Tong Minh Date: Sun, 5 Sep 2010 13:16:23 +0000 Subject: [PATCH] Made user global constants class constants so that autoloader magic can be used. --- includes/User.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/includes/User.php b/includes/User.php index bb981757bb..eee0684bab 100644 --- a/includes/User.php +++ b/includes/User.php @@ -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 -- 2.20.1