Double-check at runtime that sitename is set. Paranoia is good... if we don't do...
authorBrion Vibber <brion@users.mediawiki.org>
Sun, 29 Feb 2004 08:06:49 +0000 (08:06 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Sun, 29 Feb 2004 08:06:49 +0000 (08:06 +0000)
index.php

index 3458096..1c2a531 100644 (file)
--- 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" );