Commit baf2ef33 authored by tbrehm's avatar tbrehm
Browse files

Changed the symlink function in the the installer.

parent 5660b94f
...@@ -611,7 +611,7 @@ class installer_base { ...@@ -611,7 +611,7 @@ class installer_base {
if ($dh = opendir($dir)) { if ($dh = opendir($dir)) {
while (($file = readdir($dh)) !== false) { while (($file = readdir($dh)) !== false) {
if($file != '.' && $file != '..') { if($file != '.' && $file != '..') {
symlink($install_dir.'/server/mods-enabled/'.$file,$install_dir.'/server/mods-available/'.$file); symlink($install_dir.'/server/mods-available/'.$file, $install_dir.'/server/mods-enabled/'.$file);
} }
} }
closedir($dh); closedir($dh);
...@@ -623,7 +623,7 @@ class installer_base { ...@@ -623,7 +623,7 @@ class installer_base {
if ($dh = opendir($dir)) { if ($dh = opendir($dir)) {
while (($file = readdir($dh)) !== false) { while (($file = readdir($dh)) !== false) {
if($file != '.' && $file != '..') { if($file != '.' && $file != '..') {
symlink($install_dir.'/server/plugins-enabled/'.$file,$install_dir.'/server/plugins-available/'.$file); symlink($install_dir.'/server/plugins-available/'.$file, $install_dir.'/server/plugins-enabled/'.$file);
} }
} }
closedir($dh); closedir($dh);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment