Some missing changes for the $wgShared(DB|Prefix|Tables) setup:
authorDaniel Friesen <dantman@users.mediawiki.org>
Mon, 30 Jun 2008 05:16:38 +0000 (05:16 +0000)
committerDaniel Friesen <dantman@users.mediawiki.org>
Mon, 30 Jun 2008 05:16:38 +0000 (05:16 +0000)
commit48019ed5546c3acf9bbdef32314a2c0e2174365e
tree8252f14c8e6c7faaf52b3c93e96d68f22c66dc89
parent4c2546b551655c219855241b4cb0c4e8fa3da7c2
Some missing changes for the $wgShared(DB|Prefix|Tables) setup:
* $wgCookiePrefix:
** Shared stuff should always come before local stuff when setting the cookie prefix (by my count, if you set $wgSharedDB and $wgDBprefix with the old order, even though your usertable is shared, your cookies would be local and logins wouldn't be shared right.
** Because the user table isn't always shared anymore, we only want shared code when $wgSharedTables has 'user' set inside of it.
** We now have $wgSharedPrefix, this should also be accounted for in the cookie prefix.
* updaders.inc: The logic for the $doUser test has changed since the conditions that the user table is shared has changed. Now when $shared is true we only want to $doUser when we have a shared database and 'user' is being shared, otherwise if $shared is false, we only want to $doUser when there is no shared database, or 'user' is not being shared.

Check MediaWiki.org's $wgSharedDB documentation for those on 1.12, I'll post a link there to a patch I maintain for 1.12.
includes/Setup.php
maintenance/updaters.inc