From 7f0854126d6f6aaff33bb0b7d35b7b067fcc047d Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Sun, 29 Feb 2004 08:06:49 +0000 Subject: [PATCH] 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. --- index.php | 4 ++++ 1 file changed, 4 insertions(+) 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" ); -- 2.20.1