Index: trunk/extensions/CentralAuth/CentralAuthUser.php |
— | — | @@ -14,7 +14,7 @@ |
15 | 15 | class CentralAuthHelper { |
16 | 16 | private static $connections = array(); |
17 | 17 | |
18 | | - function get( $dbname ) { |
| 18 | + public static function get( $dbname ) { |
19 | 19 | global $wgDBname; |
20 | 20 | if( $dbname == $wgDBname ) { |
21 | 21 | return wfGetDB( DB_MASTER ); |
— | — | @@ -29,7 +29,7 @@ |
30 | 30 | return self::$connections[$server]; |
31 | 31 | } |
32 | 32 | |
33 | | - private function getServer( $dbname ) { |
| 33 | + private static function getServer( $dbname ) { |
34 | 34 | global $wgAlternateMaster, $wgDBserver; |
35 | 35 | if( isset( $wgAlternateMaster[$dbname] ) ) { |
36 | 36 | return $wgAlternateMaster[$dbname]; |