mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00:00
Erm, yes, we use EOL in queue too. :/ (me is ashamed). Paul, thanks for giving me access to debug this.
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9429 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
a97b5f5ed8
commit
2155bbbf8a
1 changed files with 5 additions and 0 deletions
|
@ -549,6 +549,7 @@ class queue
|
||||||
var $queue_data = array();
|
var $queue_data = array();
|
||||||
var $package_size = 0;
|
var $package_size = 0;
|
||||||
var $cache_file = '';
|
var $cache_file = '';
|
||||||
|
var $eol = "\n";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* constructor
|
* constructor
|
||||||
|
@ -559,6 +560,10 @@ class queue
|
||||||
|
|
||||||
$this->data = array();
|
$this->data = array();
|
||||||
$this->cache_file = "{$phpbb_root_path}cache/queue.$phpEx";
|
$this->cache_file = "{$phpbb_root_path}cache/queue.$phpEx";
|
||||||
|
|
||||||
|
// Determine EOL character (\n for UNIX, \r\n for Windows and \r for Mac)
|
||||||
|
$this->eol = (!defined('PHP_EOL')) ? (($eol = strtolower(substr(PHP_OS, 0, 3))) == 'win') ? "\r\n" : (($eol == 'mac') ? "\r" : "\n") : PHP_EOL;
|
||||||
|
$this->eol = (!$this->eol) ? "\n" : $this->eol;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Reference in a new issue