mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
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
This commit is contained in:
parent
b11ed262ac
commit
145399b4bc
1 changed files with 3 additions and 4 deletions
|
@ -289,7 +289,6 @@ class template
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Include a seperate template
|
// Include a seperate template
|
||||||
function _tpl_include($filename, $include = true)
|
function _tpl_include($filename, $include = true)
|
||||||
|
@ -301,7 +300,7 @@ class template
|
||||||
$this->files[$handle] = $this->root . '/' . $filename;
|
$this->files[$handle] = $this->root . '/' . $filename;
|
||||||
|
|
||||||
$filename = $this->_tpl_load($handle);
|
$filename = $this->_tpl_load($handle);
|
||||||
|
|
||||||
if ($include)
|
if ($include)
|
||||||
{
|
{
|
||||||
if (!$this->force_recompile && $filename)
|
if (!$this->force_recompile && $filename)
|
||||||
|
@ -556,7 +555,7 @@ class template
|
||||||
case '/':
|
case '/':
|
||||||
case '@':
|
case '@':
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'eq':
|
case 'eq':
|
||||||
$token = '==';
|
$token = '==';
|
||||||
break;
|
break;
|
||||||
|
@ -766,7 +765,7 @@ class template
|
||||||
|
|
||||||
$filename = $this->cachepath . $this->filename[$handle] . '.' . (($this->static_lang) ? $user->data['user_lang'] . '.' : '') . $phpEx;
|
$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);
|
@flock($fp, LOCK_EX);
|
||||||
@fwrite ($fp, $data);
|
@fwrite ($fp, $data);
|
||||||
|
|
Loading…
Add table
Reference in a new issue