-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Jim Hu wrote:
When I use importDump.php to import a page that includes the text [{{SERVER}}], it seems like I initially get http:/localhost instead of http://$wgServerName. But this only occurs on the first load, and it is corrected if I do an edit on the page.
Anyone else seen this? Any ideas about why it's happening and how to fix it?
$wgServer can't be autodetected sensibly from the web server when you're not running via the web server, so it defaults to 'http://localhost'.
If you set it explicitly in LocalSettings.php it should stick on the command-line scripts as well, though.
- -- brion vibber (brion @ wikimedia.org)