projects
/
squirrelmail.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Stop using deprecated ereg() functions (#2820952)
[squirrelmail.git]
/
class
/
l10n
/
gettext.class.php
diff --git
a/class/l10n/gettext.class.php
b/class/l10n/gettext.class.php
index 76f020045b36aef04e6cca901ba3f12ca19a763f..a6de17ca2a49bce5b4d03b814ae81a3336ce7372 100644
(file)
--- a/
class/l10n/gettext.class.php
+++ b/
class/l10n/gettext.class.php
@@
-229,7
+229,7
@@
class gettext_reader {
else {
$header = $this->get_translation_number(0);
- if (
eregi("plural-forms: (.*)\n"
,$header,$regs)) {
+ if (
preg_match('/plural-forms: (.*)\n/i'
,$header,$regs)) {
$expr = $regs[1];
} else {
$expr = "nplurals=2; plural=n == 1 ? 0 : 1;";