File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 )) {
You can’t perform that action at this time.
0 commit comments