Skip to content

Commit bcebe21

Browse files
committed
New generate page for Environment distro file
1 parent 0038d18 commit bcebe21

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

generate/environment_local.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,20 @@
1313
$translation = new Translation($lang);
1414

1515
// make directories if they are not already there
16-
if (!is_dir("/distribution/environment")) {
17-
mkdir("/distribution/environment", '0775');
16+
if (!is_dir($path)) {
17+
mkdir($path, '0775');
1818
}
1919
echo "environment folder created";
20-
if (!is_dir("/distribution/environment/images/")) {
21-
mkdir($path.'/distribution/environment/images/', '0775');
20+
if (!is_dir($path.'images/')) {
21+
mkdir($path.'images/', '0775');
2222
}
23-
echo "image folder created"
23+
echo "image folder created";
2424

2525
// make page
2626

2727
//make_necessary_directories($path."images/file");
28-
$page = new LocalPage("Environment (IDE)", "Environment", "Environment", '../');
29-
$page->content(file_get_contents($source."index.html"));
28+
$page = new LocalPage('Environment (IDE)', 'Environment', 'Environment', '../');
29+
$page->content(file_get_contents($source.'index.html'));
3030
$page->language($lang);
3131
writeFile($path.'index.html', $page->out());
3232
copydirr($source.'/images', $path.'/images');

0 commit comments

Comments
 (0)