't' => true,
);
while ($file = readdir($dh)) {
- if (!$ignore_file[$file]) {
+ if (!isset($ignore_file[$file]) || !$ignore_file[$file]) {
$from = "$src_path/$file";
$to = "$master_path/$file";
mysymlink($from, $to);
mysymlink($from, $to);
// link the rest of the files from monobook skin
-$fromdir = "$mediawiki_src_path/skins/monobook";
+$fromdir = "$src_path/skins/monobook";
$dh = opendir($fromdir);
$ignore_file = array(
'..' => true,
);
while ($file = readdir($dh)) {
- if (!$ignore_file[$file]) {
+ if (!isset($ignore_file[$file]) || !$ignore_file[$file]) {
$from = "$fromdir/$file";
$to = "$todir/$file";
mysymlink($from, $to);