You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: makesite
+7
Original file line number
Diff line number
Diff line change
@@ -168,6 +168,7 @@ $dir_created = false;
168
168
$htaccess_created = false;
169
169
$index_file_created = false;
170
170
$tables_dir_created = false;
171
+
$templates_c_dir_created = false;
171
172
if ( !file_exists($site_path) ){
172
173
if ( !mkdir($site_path) ){
173
174
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") ){
294
295
}
295
296
}
296
297
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
+
}
297
304
if ( is_dir($site_path.DIRECTORY_SEPARATOR."tables") ){
0 commit comments