[Mediawiki-l] $dbr->selectDB

Brion Vibber brion at wikimedia.org
Fri Aug 24 15:19:51 UTC 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Jim Hu wrote:
> This is where having the TableEdit outside is coming back to bite me.
> 
> When I use $dbr->selectDB($wgTableEditDatabaseName), do I need to  
> include global $wgDBname all over the place and do $dbr->selectDB 
> ($wgDBname) every time, or is there a better way that doesn't need to  
> use another global.  i.e. is there something like $dbr- 
>  >select_default_wikidb?

I would strongly recommend using a table in the same database, rather
than a table in a separate database. This will ease your life and the
life of anyone trying to use and administer the system.

- -- brion vibber (brion @ wikimedia.org)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGzvcXwRnhpk1wk44RArslAJ9ld93BYGnrFaDXUfOFJBfjYmz+jwCeOAAz
EnkBZB/4V91NqhFGLMgnIwY=
=yL0F
-----END PGP SIGNATURE-----



More information about the MediaWiki-l mailing list