From: Brion Vibber Date: Sun, 29 Feb 2004 08:06:49 +0000 (+0000) Subject: Double-check at runtime that sitename is set. Paranoia is good... if we don't do... X-Git-Tag: 1.3.0beta1~910 X-Git-Url: http://git.cyclocoop.org/%24image?a=commitdiff_plain;h=7f0854126d6f6aaff33bb0b7d35b7b067fcc047d;p=lhc%2Fweb%2Fwiklou.git Double-check at runtime that sitename is set. Paranoia is good... if we don't do this, manual installs that are sloppy may introduce subtle bugs. --- diff --git a/index.php b/index.php index 3458096780..1c2a53109b 100644 --- a/index.php +++ b/index.php @@ -7,6 +7,10 @@ unset( $IP ); ini_set( "allow_url_fopen", 0 ); # For security... include_once( "./LocalSettings.php" ); +if( $wgSitename == "MediaWiki" ) { + die( "You must set the site name in \$wgSitename before installation.\n\n" ); +} + # Windows requires ';' as separator, ':' for Unix $sep = strchr( $include_path = ini_get( "include_path" ), ";" ) ? ";" : ":"; ini_set( "include_path", "$IP$sep$include_path" );