From 4dc13a3a92f711900a61335256f97f465a5067dd Mon Sep 17 00:00:00 2001 From: Savetheinternet Date: Tue, 30 Nov 2010 19:21:06 +1100 Subject: Fixed bug causing templates to fail after a chdir() --- post.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'post.php') diff --git a/post.php b/post.php index 3e4e6934..4458164c 100644 --- a/post.php +++ b/post.php @@ -1,11 +1,11 @@ 'b', 'name' => 'Beta', 'title' => 'In development.'); + $board['dir'] = sprintf(BOARD_PATH, $board['uri']); $board['url'] = sprintf(BOARD_ABBREVIATION, $board['uri']); + if(!file_exists($board['dir'])) mkdir($board['dir'], 0777); + chdir($board['dir']); + $body = ''; // Fix for magic quotes -- cgit v1.3