r72422 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r72421‎ | r72422 | r72423 >
Date:13:16, 5 September 2010
Author:btongminh
Status:ok
Tags:
Comment:
Made user global constants class constants so that autoloader magic can be used.
Modified paths:
  • /trunk/phase3/includes/User.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/User.php
@@ -41,6 +41,13 @@
4242 * of the database.
4343 */
4444 class User {
 45+ /**
 46+ * Global constants made accessable as class constants so that autoloader
 47+ * magic can be used.
 48+ */
 49+ const USER_TOKEN_LENGTH = USER_TOKEN_LENGTH;
 50+ const MW_USER_VERSION = MW_USER_VERSION;
 51+ const EDIT_TOKEN_SUFFIX = EDIT_TOKEN_SUFFIX;
4552
4653 /**
4754 * \type{\arrayof{\string}} List of member variables which are saved to the

Status & tagging log