Fixed 0000097,0000098 and view of credit notes with empty lines.
[fa-stable.git] / admin / create_coy.php
index 8324fa7d9d5a638789bbc1391df7914288db4ef9..50dcca0f7eac15fea79ecb8e5a63efde8d626539 100644 (file)
@@ -137,19 +137,10 @@ function handle_submit()
        {
                return false;
        }
-       $index = "<?php\nheader(\"Location: ../../index.php\");\n?>";
 
        if ($new)
        {
-           $cdir = $comp_path.'/'.$id;
-           @mkdir($cdir);
-           save_to_file($cdir.'/'.'index.php', 0, $index);
-
-           foreach($comp_subdirs as $dir)
-           {
-                       @mkdir($cdir.'/'.$dir);
-                       save_to_file($cdir.'/'.$dir.'/'.'index.php', 0, $index);
-           }
+               create_comp_dirs("$comp_path/$id", $comp_subdirs);
        }
        return true;
 }