aboutsummaryrefslogtreecommitdiff
path: root/www/inc
diff options
context:
space:
mode:
Diffstat (limited to 'www/inc')
-rw-r--r--www/inc/funkce.inc.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/www/inc/funkce.inc.php b/www/inc/funkce.inc.php
index 368ea8e..de4b592 100644
--- a/www/inc/funkce.inc.php
+++ b/www/inc/funkce.inc.php
@@ -54,7 +54,7 @@ function readInfo ($infofile, $file) {
$info_array = infoParse($infofile);
if ($info_array["date"]) {
// try to be a little smarter about format
- if (ereg("([0-9]{1,2})\.([0-9]{1,2})\.([0-9]{4})",
+ if (preg_match("/([0-9]{1,2})\.([0-9]{1,2})\.([0-9]{4})/",
$info_array["date"])) {
// remain compatible - DD.MM.YYYY
list($day,$month,$year) = preg_split("/\./", $info_array["date"]);