Have the skin cache the highlightbroken and hover options to avoid asking the user...
[lhc/web/wiklou.git] / includes / SiteConfiguration.php
index 88b1a6e..1abe48d 100644 (file)
@@ -3,11 +3,23 @@
  *This file is used to configure the live Wikimedia wikis. The file that
  * includes it contains passwords and other sensitive data, and there's
  * currently no public equivalent.
+ *
+ * @package MediaWiki
  */
 
 /**
  *
+ * @package MediaWiki
+ */
+
+/**
+ * The include paths change after this file is included from commandLine.inc, 
+ * meaning that require_once() fails to detect that it is including the same
+ * file again. We use DIY C-style protection as a workaround.
  */
+if (!defined('SITE_CONFIGURATION')) {
+define('SITE_CONFIGURATION', 1);
+
 class SiteConfiguration {
        var $suffixes, $wikis, $settings;
        var $localDatabases;
@@ -81,6 +93,6 @@ class SiteConfiguration {
                return array( $site, $lang );
        }
 }
-
+}
        
 ?>