Index: trunk/phase3/includes/DefaultSettings.php |
— | — | @@ -541,6 +541,10 @@ |
542 | 542 | # Use RC Patrolling to check for vandalism |
543 | 543 | $wgUseRCPatrol = true; |
544 | 544 | |
| 545 | +# set wgUserTablePrefix to the name of the DB where your users |
| 546 | +# table is for single login. Disabled by default. |
| 547 | +#$wgUserTablePrefix=''; |
| 548 | + |
545 | 549 | } else { |
546 | 550 | die(); |
547 | 551 | } |
Index: trunk/phase3/includes/Database.php |
— | — | @@ -666,11 +666,15 @@ |
667 | 667 | } |
668 | 668 | |
669 | 669 | function tableName( $name ) { |
| 670 | + global $wgUserTablePrefix; |
670 | 671 | if ( $this->mTablePrefix !== '' ) { |
671 | 672 | if ( strpos( '.', $name ) === false ) { |
672 | 673 | $name = $this->mTablePrefix . $name; |
673 | 674 | } |
674 | 675 | } |
| 676 | + if ( isset( $wgUserTablePrefix ) && 'user' == $name ) { |
| 677 | + $name = $wgUserTablePrefix . '.' . $name; |
| 678 | + } |
675 | 679 | return $name; |
676 | 680 | } |
677 | 681 | |