Require sitename to be set at install or update time. It must not be MediaWiki in...
authorBrion Vibber <brion@users.mediawiki.org>
Sat, 28 Feb 2004 08:04:02 +0000 (08:04 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Sat, 28 Feb 2004 08:04:02 +0000 (08:04 +0000)
install.php
update.php

index b966798..9c7163e 100644 (file)
@@ -19,6 +19,10 @@ include_once( "./LocalSettings.php" );
 include_once( "./AdminSettings.php" );
 include_once( "./maintenance/InitialiseMessages.inc" );
 
+if( $wgSitename == "MediaWiki" ) {
+       die( "You must set the site name in \$wgSitename before installation.\n\n" );
+}
+
 if ( $wgUseTeX && ( ! is_executable( "./math/texvc" ) ) ) {
        print "To use math functions, you must first compile texvc by\n" .
          "running \"make\" in the math directory.\n";
index 6c6db17..94cfcf2 100644 (file)
@@ -19,6 +19,10 @@ include_once( "./AdminSettings.php" );
 
 include( "$IP/Version.php" );
 
+if( $wgSitename == "MediaWiki" ) {
+       die( "You must set the site name in \$wgSitename before installation.\n\n" );
+}
+
 if ( $wgUseTeX && ( ! is_executable( "./math/texvc" ) ) ) {
        print "To use math functions, you must first compile texvc by\n" .
          "running \"make\" in the math directory.\n";