Created
November 22, 2014 20:47
-
-
Save Southparkfan/dd98a43575abe87715cd to your computer and use it in GitHub Desktop.
wmgclosedwikis
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$DBlist = array_map( 'trim', file( "$IP/all.dblist" ) ); | |
$wgLocalDatabases = array(); | |
foreach ( $DBlist as $wiki ) { | |
$wikinotags = explode( '|', $wiki, 4 ); | |
list( $DBname, $siteName, $siteLang, $wikiTagList ) = array_pad( $wikinotags, 4, '' ); | |
$wgLocalDatabases[] = $DBname; | |
if ( strpos( '|closed', $wiki ) ) { | |
$wmgClosedWikis[] = $DBname; | |
} | |
$wgConf->settings['wgSitename'][$DBname] = $siteName; | |
$wgConf->settings['wgLanguageCode'][$DBname] = $siteLang; | |
if ( $DBname == $wgDBname ) { | |
$wikiTags = array_filter( explode( '|', $wikiTagList ) ); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment