Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require_once( "$IP/../extensions/CentralAuth/CentralAuth.php" );
- $wgCentralAuthDatabase = 'mediawiki_test_centralauth';
- $host = 'localhost';
- $wgConf->settings = array (
- 'wgServer' => array (
- 'default' => '//' . $host,
- 'mediawiki_test_git' => '//' . $host,
- 'mediawiki_test_globalfeatures' => '' . $host,
- ),
- 'wgCanonicalServer' => array (
- 'default' => 'http://' . $host,
- 'mediawiki_test_git' => 'http://' . $host,
- 'mediawiki_test_globalfeatures' => 'http://' . $host,
- ),
- 'wgScriptPath' => array (
- 'mediawiki_test_git' => '/MediaWiki/Git/core',
- 'mediawiki_test_globalfeatures' => '/MediaWiki/Git/GlobalFeaturesTest'
- ),
- 'wgArticlePath' => array (
- 'mediawiki_test_git' => '/MediaWiki/Git/core/index.php/$1',
- 'mediawiki_test_globalfeatures' => '/MediaWiki/Git/GlobalFeaturesTest/index.php/$1'
- ),
- 'wgSitename' => array (
- 'default' => 'GitTest'
- ),
- 'wgLanguageCode' => array (
- 'default' => 'en'
- ),
- 'wgLocalInterwiki' => array(
- 'default' => 'en'
- ),
- );
- $wgConf->wikis = $wgLocalDatabases;
- $wgConf->suffixes = $wgLocalDatabases;
- $wgConf->localVHosts = array( 'localhost' );
- function efGetSiteParams( $conf, $wiki ) {
- return array(
- 'suffix' => 'wiki',
- 'lang' => 'en',
- 'params' => array(
- 'lang' => 'en',
- 'site' => 'wiki',
- 'wiki' => $wiki,
- ),
- 'tags' => array(),
- );
- }
- $wgConf->siteParamsCallback = 'efGetSiteParams';
- $wgConf->extractAllGlobals( $wgDBname );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement