http://www.mediawiki.org/wiki/Special:Code/MediaWiki/72422
Revision: 72422
Author: btongminh
Date: 2010-09-05 13:16:23 +0000 (Sun, 05 Sep 2010)
Log Message:
-----------
Made user global constants class constants so that autoloader magic can be used.
Modified Paths:
--------------
trunk/phase3/includes/User.php
Modified: trunk/phase3/includes/User.php
===================================================================
--- trunk/phase3/includes/User.php 2010-09-05 13:15:48 UTC (rev 72421)
+++ trunk/phase3/includes/User.php 2010-09-05 13:16:23 UTC (rev 72422)
@@ -41,6 +41,13 @@
* 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
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs