aboutsummaryrefslogtreecommitdiff
path: root/www/inc/exif.inc.php
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2011-02-18 11:44:58 -0200
committerSilvio Rhatto <rhatto@riseup.net>2011-02-18 11:44:58 -0200
commit9334f7e48133c3a2309ed8dc39182cbc486570b6 (patch)
tree7d2aa4f0965d3b18ceff91f47712aca6787c1a4a /www/inc/exif.inc.php
parent9440f6530bb5809e36d4220062fce040cb00f01c (diff)
downloadoriginal-9334f7e48133c3a2309ed8dc39182cbc486570b6.tar.gz
original-9334f7e48133c3a2309ed8dc39182cbc486570b6.tar.bz2
Avoiding deprecation notices (3)
Diffstat (limited to 'www/inc/exif.inc.php')
-rw-r--r--www/inc/exif.inc.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/www/inc/exif.inc.php b/www/inc/exif.inc.php
index 00068c8..ac30a16 100644
--- a/www/inc/exif.inc.php
+++ b/www/inc/exif.inc.php
@@ -46,7 +46,7 @@ function formatEXIF ($k,$v) {
break;
case "DateTime":
//return date("M d Y H:i:s", $v);
- ereg("^([0-9]{4}):([0-9]{1,2}):([0-9]{1,2}) (.*)",$v,$x);
+ preg_match("/^([0-9]{4}):([0-9]{1,2}):([0-9]{1,2}) (.*)/",$v,$x);
return $x[1] . "/" . $x[2] . "/" . $x[3] . " " . $x[4];
break;
default: