From 7c3bf28334316d6f9ba9718b2d0916df746c9abc Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Sat, 28 Feb 2004 08:04:02 +0000 Subject: [PATCH] Require sitename to be set at install or update time. It must not be MediaWiki in particular, as that would interfere with namespaces 4 and 8. The old default was Wikipedia, also not great for most people. :) --- install.php | 4 ++++ update.php | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/install.php b/install.php index b966798c64..9c7163eee9 100644 --- a/install.php +++ b/install.php @@ -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"; diff --git a/update.php b/update.php index 6c6db17049..94cfcf2841 100644 --- a/update.php +++ b/update.php @@ -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"; -- 2.20.1