Skip to content

Commit 2221a29

Browse files
authored
Update makesite
1 parent c1aca40 commit 2221a29

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

makesite

+7
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@ $dir_created = false;
168168
$htaccess_created = false;
169169
$index_file_created = false;
170170
$tables_dir_created = false;
171+
$templates_c_dir_created = false;
171172
if ( !file_exists($site_path) ){
172173
if ( !mkdir($site_path) ){
173174
fwrite(STDERR, "Failed to create site because we could not create the directory '$site_path'. Please check to make sure that you have permission to create the directory.\n");
@@ -294,6 +295,12 @@ if ( !file_exists($site_path.DIRECTORY_SEPARATOR."tables") ){
294295
}
295296
}
296297

298+
if ( !file_exists($site_path.DIRECTORY_SEPARATOR."templates_c") ){
299+
fwrite(STDOUT, "Creating templates directory at '$site_path"."/templates_c'...\n");
300+
if ( mkdir($site_path.DIRECTORY_SEPARATOR."templates_c") ){
301+
$templates_c_dir_created = true;
302+
}
303+
}
297304
if ( is_dir($site_path.DIRECTORY_SEPARATOR."tables") ){
298305
foreach ( $tables as $table ){
299306
if ( strpos($table, "/") !== false ){

0 commit comments

Comments
 (0)