r49632 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r49631‎ | r49632 | r49633 >
Date:18:41, 18 April 2009
Author:btongminh
Status:deferred
Tags:
Comment:
autoloader fixes
Modified paths:
  • /branches/NssMySQLAuth-rewrite/NssMySQLAuth/AccountManager/AccountManager.php (modified) (history)
  • /branches/NssMySQLAuth-rewrite/NssMySQLAuth/AccountManager/NssProperties.php (modified) (history)
  • /branches/NssMySQLAuth-rewrite/NssMySQLAuth/NssMySQLAuth.php (modified) (history)

Diff [purge]

Index: branches/NssMySQLAuth-rewrite/NssMySQLAuth/NssMySQLAuth.php
@@ -29,7 +29,6 @@
3030
3131 $wgAutoloadClasses['NssMySQLAuthPlugin'] = $dir . 'NssMySQLAuthPlugin.php';
3232 $wgAutoloadClasses['Md5crypt'] = $dir . 'Md5crypt.php';
33 -$wgAutoloadClasses['SpecialAccountManager'] = $dir . 'SpecialAccountManager.php';
3433
3534 $wgNssMySQLAuthDB = false;
3635
Index: branches/NssMySQLAuth-rewrite/NssMySQLAuth/AccountManager/NssProperties.php
@@ -54,5 +54,8 @@
5555 $dbw->insert( 'user_props', $insert, __METHOD__ );
5656 }
5757
58 - public static function getAll() { return array(); }
 58+ public static function getAll() {
 59+ global $wgUserProperties;
 60+ return array_merge( array( 'username', 'email', 'active' ), $wgUserProperties );
 61+ }
5962 }
\ No newline at end of file
Index: branches/NssMySQLAuth-rewrite/NssMySQLAuth/AccountManager/AccountManager.php
@@ -9,8 +9,8 @@
1010 $wgAutoloadClasses['NssProperties'] = $dir . 'NssProperties.php';
1111
1212 $wgAutoloadClasses['SpecialAccountManager'] = $dir . 'SpecialAccountManager.php';
13 -$wgAutoloadClasses['AmUserListView'] = $dir . 'AmUserListView';
14 -$wgAutoloadClasses['AmUserView'] = $dir . 'AmUserView';
 13+$wgAutoloadClasses['AmUserListView'] = $dir . 'AmUserListView.php';
 14+$wgAutoloadClasses['AmUserView'] = $dir . 'AmUserView.php';
1515
1616 $wgSpecialPages['AccountManager'] = 'SpecialAccountManager';
1717

Status & tagging log