diff options
Diffstat (limited to 'modules/mediawiki')
-rw-r--r-- | modules/mediawiki/files/init_wiki.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/modules/mediawiki/files/init_wiki.php b/modules/mediawiki/files/init_wiki.php index bb2137ae..926c52fc 100644 --- a/modules/mediawiki/files/init_wiki.php +++ b/modules/mediawiki/files/init_wiki.php @@ -20,5 +20,10 @@ $wgDatabase = $dbc->newFromParams($wgDBserver, $wgDatabase->initial_setup($wgDBpassword, $wgDBname); $wgDatabase->setup_database(); -rmdir("$wiki_root/config"); +$dir = "$wiki_root/config"; +foreach (scandir($dir) as $item) { + if (!is_dir($item) || is_link($item)) + unlink($item); +} +rmdir("$dir"); ?> |