Removes call to deprecated ereg.
authorStéphane Jacob <sj@m4x.org>
Mon, 21 Mar 2011 18:09:11 +0000 (19:09 +0100)
committerSté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

index 1fa6352..11b6b85 100644 (file)
@@ -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;
         }