/[adm]/puppet/modules/mediawiki/files/init_wiki.php
ViewVC logotype

Diff of /puppet/modules/mediawiki/files/init_wiki.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1749 by misc, Thu Jun 16 22:17:58 2011 UTC revision 1760 by misc, Fri Jun 17 12:21:02 2011 UTC
# Line 20  $wgDatabase = $dbc->newFromParams($wgDBs Line 20  $wgDatabase = $dbc->newFromParams($wgDBs
20  $wgDatabase->initial_setup($wgDBpassword, $wgDBname);  $wgDatabase->initial_setup($wgDBpassword, $wgDBname);
21  $wgDatabase->setup_database();  $wgDatabase->setup_database();
22    
23  rmdir("$wiki_root/config");  $dir = "$wiki_root/config";
24    foreach (scandir($dir) as $item) {
25            if (!is_dir($item) || is_link($item))
26                    unlink($item);
27    }
28    rmdir("$dir");
29  ?>  ?>

Legend:
Removed from v.1749  
changed lines
  Added in v.1760

  ViewVC Help
Powered by ViewVC 1.1.28