projects
/
platal.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8b540d0
)
Removes call to deprecated ereg.
author
Stéphane Jacob
<sj@m4x.org>
Mon, 21 Mar 2011 18:09:11 +0000
(19:09 +0100)
committer
Stéphane Jacob
<sj@m4x.org>
Mon, 21 Mar 2011 18:09:11 +0000
(19:09 +0100)
Signed-off-by: Stéphane Jacob <sj@m4x.org>
modules/platal.php
patch
|
blob
|
blame
|
history
diff --git
a/modules/platal.php
b/modules/platal.php
index
1fa6352
..
11b6b85
100644
(file)
--- a/
modules/platal.php
+++ b/
modules/platal.php
@@
-276,7
+276,7
@@
class PlatalModule extends PLModule
return;
}
- if (!
ereg('[0-3][0-9][0-1][0-9][1][9]([0-9]{2})
', Env::v('birth'))) {
+ if (!
preg_match('/^[0-3][0-9][0-1][0-9][1][9]([0-9]{2})$/
', Env::v('birth'))) {
$page->trigError('Date de naissance incorrecte ou incohérente');
return;
}