Changeset 6160 for branches/0.9/bb-includes/gettext.php
- Timestamp:
- 12/12/2016 01:59:44 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/0.9/bb-includes/gettext.php
r1363 r6160 102 102 * @param boolean enable_cache Enable or disable caching of strings (default on) 103 103 */ 104 function gettext_reader($Reader, $enable_cache = true) {104 function __construct($Reader, $enable_cache = true) { 105 105 // If there isn't a StreamReader, turn on short circuit mode. 106 106 if (! $Reader || isset($Reader->error) ) { … … 136 136 $this->originals = $this->readint(); 137 137 $this->translations = $this->readint(); 138 } 139 140 function gettext_reader($Reader, $enable_cache = true) { 141 $this->__construct($Reader, $enable_cache); 138 142 } 139 143 … … 292 296 } 293 297 $header .= "\n"; //make sure our regex matches 294 if ( eregi("plural-forms: ([^\n]*)\n", $header, $regs))298 if (preg_match("/plural-forms: ([^\n]*)\n/i", $header, $regs)) 295 299 $expr = $regs[1]; 296 300 else
Note: See TracChangeset
for help on using the changeset viewer.