From 41d3effa19ce1ed4db44407c8c6851045b18cff9 Mon Sep 17 00:00:00 2001 From: David M Date: Mon, 28 Jul 2008 01:16:47 +0000 Subject: [PATCH] Added the locking code back in... Marek, feel free to reorder it as you see fit. git-svn-id: file:///svn/phpbb/trunk@8687 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/functions_template.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/phpBB/includes/functions_template.php b/phpBB/includes/functions_template.php index 74f5311dff..31cee929b2 100644 --- a/phpBB/includes/functions_template.php +++ b/phpBB/includes/functions_template.php @@ -738,6 +738,8 @@ class template_compile } stream_filter_append($source_handle, 'template'); + + @flock($destination_handle); stream_copy_to_stream($source_handle, $destination_handle); @fclose($source_handle); @@ -773,4 +775,4 @@ class template_compile } } -?> \ No newline at end of file +?>