<?php
-/**
- * This is a class used to hold configuration settings, particularly for multi-wiki sites.
- *
- * @package MediaWiki
- */
/**
- * The include paths change after this file is included from commandLine.inc,
+ * 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);
-/** @package MediaWiki */
+/**
+ * This is a class used to hold configuration settings, particularly for multi-wiki sites.
+ *
+ */
class SiteConfiguration {
var $suffixes = array();
var $wikis = array();
var $settings = array();
var $localVHosts = array();
- /** */
+ /** */
function get( $setting, $wiki, $suffix, $params = array() ) {
if ( array_key_exists( $setting, $this->settings ) ) {
if ( array_key_exists( $wiki, $this->settings[$setting] ) ) {
$localSettings = array();
foreach ( $this->settings as $varname => $stuff ) {
$value = $this->get( $varname, $wiki, $suffix, $params );
- if ( !is_null( $value ) ) {
+ if ( !is_null( $value ) ) {
$localSettings[$varname] = $value;
}
}
}
}
}
-
-?>
+
+