Line 0
Link Here
|
|
|
1 |
--- share/server/core/ext/php-gettext-1.0.9/gettext.php.orig 2017-12-21 20:52:04.548840000 +0100 |
2 |
+++ share/server/core/ext/php-gettext-1.0.9/gettext.php 2017-12-21 20:52:26.904652000 +0100 |
3 |
@@ -98,7 +98,7 @@ |
4 |
* @param object Reader the StreamReader object |
5 |
* @param boolean enable_cache Enable or disable caching of strings (default on) |
6 |
*/ |
7 |
- function gettext_reader($Reader, $enable_cache = true) { |
8 |
+ function __construct($Reader, $enable_cache = true) { |
9 |
// If there isn't a StreamReader, turn on short circuit mode. |
10 |
if (! $Reader || isset($Reader->error) ) { |
11 |
$this->short_circuit = true; |
12 |
--- share/server/core/ext/php-gettext-1.0.9/streams.php.orig 2017-12-21 20:52:12.507752000 +0100 |
13 |
+++ share/server/core/ext/php-gettext-1.0.9/streams.php 2017-12-21 20:53:08.533635000 +0100 |
14 |
@@ -49,7 +49,7 @@ |
15 |
var $_pos; |
16 |
var $_str; |
17 |
|
18 |
- function StringReader($str='') { |
19 |
+ function __construct($str='') { |
20 |
$this->_str = $str; |
21 |
$this->_pos = 0; |
22 |
} |
23 |
@@ -86,7 +86,7 @@ |
24 |
var $_fd; |
25 |
var $_length; |
26 |
|
27 |
- function FileReader($filename) { |
28 |
+ function __construct($filename) { |
29 |
if (file_exists($filename)) { |
30 |
|
31 |
$this->_length=filesize($filename); |
32 |
@@ -143,7 +143,7 @@ |
33 |
// Preloads entire file in memory first, then creates a StringReader |
34 |
// over it (it assumes knowledge of StringReader internals) |
35 |
class CachedFileReader extends StringReader { |
36 |
- function CachedFileReader($filename) { |
37 |
+ function __construct($filename) { |
38 |
if (file_exists($filename)) { |
39 |
|
40 |
$length=filesize($filename); |