Minor fixes.

This commit is contained in:
flash 2019-06-10 00:16:34 +02:00
parent 4a96f69edc
commit c30d29faf0
2 changed files with 2 additions and 2 deletions

View file

@ -157,7 +157,7 @@ function forumPostingPreview(
callback(false, 'Failed to render preview.'); callback(false, 'Failed to render preview.');
} }
}); });
xhr.open('POST', '/forum/posting.php'); xhr.open('POST', urlFormat('forum-topic-new'));
xhr.withCredentials = true; xhr.withCredentials = true;
xhr.send(formData); xhr.send(formData);
} }

View file

@ -47,7 +47,7 @@ function tpl_sanitise_path(string $path): string
return $path; return $path;
} }
return str_replace('.', '/', $path) . MSZ_TPL_FILE_EXT; return str_replace('.', DIRECTORY_SEPARATOR, $path) . MSZ_TPL_FILE_EXT;
} }
function tpl_exists(string $path): bool function tpl_exists(string $path): bool