When switching from admin to non-admin account, make sure to set $this->db to null...
authorGreg Sabino Mullane <greg@users.mediawiki.org>
Mon, 21 Mar 2011 22:09:49 +0000 (22:09 +0000)
committerGreg Sabino Mullane <greg@users.mediawiki.org>
Mon, 21 Mar 2011 22:09:49 +0000 (22:09 +0000)
commitd7f7a69d6a992ed80b1b45fdb6e663168afd8b32
treebfaf02baa79db23747aa845b9f2c10a5f0e66254
parente19a2ac3e1f647bd602d294d4fce354aaeca7c79
When switching from admin to non-admin account, make sure to set $this->db to null, otherwise MW will happily return the old handle, which means we end up in the old admin database, and thus create our 'mediawiki' schema in the postgres or template1 database (whoops!). There may be other similar cases in the code in which we are not clearing this->db before toggling the useAdmin attribute. Fixes bug 28171.
includes/installer/PostgresInstaller.php