dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
066984c
)
Made user global constants class constants so that autoloader magic can be used.
author
Bryan Tong Minh
<btongminh@users.mediawiki.org>
Sun, 5 Sep 2010 13:16:23 +0000
(13:16 +0000)
committer
Bryan Tong Minh
<btongminh@users.mediawiki.org>
Sun, 5 Sep 2010 13:16:23 +0000
(13:16 +0000)
includes/User.php
patch
|
blob
|
history
diff --git
a/includes/User.php
b/includes/User.php
index
bb98175
..
eee0684
100644
(file)
--- 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