From: Brion Vibber Date: Sat, 28 Feb 2004 08:04:02 +0000 (+0000) Subject: Require sitename to be set at install or update time. It must not be MediaWiki in... X-Git-Tag: 1.3.0beta1~916 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/comptes/ajouter.php?a=commitdiff_plain;h=7c3bf28334316d6f9ba9718b2d0916df746c9abc;p=lhc%2Fweb%2Fwiklou.git 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. :) --- 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";