aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes
diff options
context:
space:
mode:
authorLudovic Arnaud <ludovic_arnaud@users.sourceforge.net>2003-08-10 18:33:25 +0000
committerLudovic Arnaud <ludovic_arnaud@users.sourceforge.net>2003-08-10 18:33:25 +0000
commit145399b4bcb75727915d77404dfd6fe16bd4d065 (patch)
treef1724699ed0b4fac646878cfc920d0ddbdd51139 /phpBB/includes
parentb11ed262ac862f7ec8b8d96b53f65d1d1df7477e (diff)
downloadforums-145399b4bcb75727915d77404dfd6fe16bd4d065.tar
forums-145399b4bcb75727915d77404dfd6fe16bd4d065.tar.gz
forums-145399b4bcb75727915d77404dfd6fe16bd4d065.tar.bz2
forums-145399b4bcb75727915d77404dfd6fe16bd4d065.tar.xz
forums-145399b4bcb75727915d77404dfd6fe16bd4d065.zip
Added the binary attribute for Windows platforms. Removed the read attribute because it wasn't needed.
git-svn-id: file:///svn/phpbb/trunk@4364 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes')
-rw-r--r--phpBB/includes/template.php7
1 files changed, 3 insertions, 4 deletions
diff --git a/phpBB/includes/template.php b/phpBB/includes/template.php
index 51935ba9df..3673b0b7fe 100644
--- a/phpBB/includes/template.php
+++ b/phpBB/includes/template.php
@@ -289,7 +289,6 @@ class template
return true;
}
-
// Include a seperate template
function _tpl_include($filename, $include = true)
@@ -301,7 +300,7 @@ class template
$this->files[$handle] = $this->root . '/' . $filename;
$filename = $this->_tpl_load($handle);
-
+
if ($include)
{
if (!$this->force_recompile && $filename)
@@ -556,7 +555,7 @@ class template
case '/':
case '@':
break;
-
+
case 'eq':
$token = '==';
break;
@@ -766,7 +765,7 @@ class template
$filename = $this->cachepath . $this->filename[$handle] . '.' . (($this->static_lang) ? $user->data['user_lang'] . '.' : '') . $phpEx;
- if ($fp = @fopen($filename, 'w+'))
+ if ($fp = @fopen($filename, 'wb'))
{
@flock($fp, LOCK_EX);
@fwrite ($fp, $data);