Minor fixes.
This commit is contained in:
parent
4a96f69edc
commit
c30d29faf0
2 changed files with 2 additions and 2 deletions
|
@ -157,7 +157,7 @@ function forumPostingPreview(
|
|||
callback(false, 'Failed to render preview.');
|
||||
}
|
||||
});
|
||||
xhr.open('POST', '/forum/posting.php');
|
||||
xhr.open('POST', urlFormat('forum-topic-new'));
|
||||
xhr.withCredentials = true;
|
||||
xhr.send(formData);
|
||||
}
|
||||
|
|
|
@ -47,7 +47,7 @@ function tpl_sanitise_path(string $path): string
|
|||
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
|
||||
|
|
Loading…
Add table
Reference in a new issue