示例#1
0
 public function getGlobalDefaults()
 {
     $defaults = parent::getGlobalDefaults();
     if (isset($_SERVER['DOCUMENT_ROOT'])) {
         $path = str_replace(array('/', '\\'), DIRECTORY_SEPARATOR, dirname($_SERVER['DOCUMENT_ROOT']) . '/data');
         $defaults['wgSQLiteDataDir'] = $path;
     }
     return $defaults;
 }
 public function getGlobalDefaults()
 {
     // The default $wgDBmwschema is null, which breaks Postgres and other DBMSes that require
     // the use of a schema, so we need to set it here
     return array_merge(parent::getGlobalDefaults(), array('wgDBmwschema' => 'mediawiki'));
 }