SHARE
    TWEET
    Krenair

    working CA wgConf setup (without SUL2)

    Jul 30th, 2013
    182
    0
    Never
    Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
    text 1.53 KB | None | 0 0
    1. require_once( "$IP/../extensions/CentralAuth/CentralAuth.php" );
    2. $wgCentralAuthDatabase = 'mediawiki_test_centralauth';
    3. $host = 'localhost';
    4. $wgConf->settings = array (
    5. 'wgServer' => array (
    6. 'default' => '//' . $host,
    7. 'mediawiki_test_git' => '//' . $host,
    8. 'mediawiki_test_globalfeatures' => '' . $host,
    9. ),
    10. 'wgCanonicalServer' => array (
    11. 'default' => 'http://' . $host,
    12. 'mediawiki_test_git' => 'http://' . $host,
    13. 'mediawiki_test_globalfeatures' => 'http://' . $host,
    14. ),
    15. 'wgScriptPath' => array (
    16. 'mediawiki_test_git' => '/MediaWiki/Git/core',
    17. 'mediawiki_test_globalfeatures' => '/MediaWiki/Git/GlobalFeaturesTest'
    18. ),
    19. 'wgArticlePath' => array (
    20. 'mediawiki_test_git' => '/MediaWiki/Git/core/index.php/1ドル',
    21. 'mediawiki_test_globalfeatures' => '/MediaWiki/Git/GlobalFeaturesTest/index.php/1ドル'
    22. ),
    23. 'wgSitename' => array (
    24. 'default' => 'GitTest'
    25. ),
    26. 'wgLanguageCode' => array (
    27. 'default' => 'en'
    28. ),
    29. 'wgLocalInterwiki' => array(
    30. 'default' => 'en'
    31. ),
    32. );
    33. $wgConf->wikis = $wgLocalDatabases;
    34. $wgConf->suffixes = $wgLocalDatabases;
    35. $wgConf->localVHosts = array( 'localhost' );
    36. function efGetSiteParams( $conf, $wiki ) {
    37. return array(
    38. 'suffix' => 'wiki',
    39. 'lang' => 'en',
    40. 'params' => array(
    41. 'lang' => 'en',
    42. 'site' => 'wiki',
    43. 'wiki' => $wiki,
    44. ),
    45. 'tags' => array(),
    46. );
    47. }
    48. $wgConf->siteParamsCallback = 'efGetSiteParams';
    49. $wgConf->extractAllGlobals( $wgDBname );
    Advertisement
    Add Comment
    Please, Sign In to add comment
    Public Pastes
    We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
    Not a member of Pastebin yet?
    Sign Up, it unlocks many cool features!

    AltStyle によって変換されたページ (->オリジナル) /