Skip to content

Commit 5a697a8

Browse files
committed
putting back a couple lost changes
1 parent aa95e24 commit 5a697a8

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

generate/tutorials.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,13 @@
5757
$directory = $tutorial->directory;
5858
$imgs = $tutorial->imgs;
5959
$code = $tutorial->code;
60-
echo "About to generate tutorial $title in directory $directory, imgs dir = $imgs, code dir = $code<br \>";
60+
echo 'About to generate tutorial '.$title.' in directory '.$directory.', imgs dir = '.$imgs.', code dir = '.$code.'<br \>';
61+
echo 'Copying '.$source.$directory.'/index.html to ' . 'learning/'.$directory.'/index.html<br \>';
6162

6263
$page = new Page($title, "Tutorials");
63-
$page->content(file_get_contents($source.$directory."/index.html"));
64-
writeFile('learning/".$directory."/index.html', $page->out());
65-
64+
$page->content(file_get_contents($source.$directory.'/index.html'));
65+
writeFile('learning/'.$directory.'/index.html', $page->out());
66+
6667
if ($imgs == 'true') {
6768
$newpath = $path.'learning/'.$directory.'/imgs';
6869
if (!is_dir($newpath)) {

0 commit comments

Comments
 (0)