aboutsummaryrefslogtreecommitdiff
path: root/www/inc/photo.class.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/photo.class.inc.php
parent9440f6530bb5809e36d4220062fce040cb00f01c (diff)
downloadoriginal-9334f7e48133c3a2309ed8dc39182cbc486570b6.tar.gz
original-9334f7e48133c3a2309ed8dc39182cbc486570b6.tar.bz2
Avoiding deprecation notices (3)
Diffstat (limited to 'www/inc/photo.class.inc.php')
-rw-r--r--www/inc/photo.class.inc.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/www/inc/photo.class.inc.php b/www/inc/photo.class.inc.php
index 1b677c1..46f1a8f 100644
--- a/www/inc/photo.class.inc.php
+++ b/www/inc/photo.class.inc.php
@@ -102,7 +102,7 @@ class C_photo {
return;
}
//parse buffer
- if(eregi("^<span>(.*)</span>( - )?(.*)", $buffer, $x)) {
+ if(preg_match("/^<span>(.*)</span>( - )?(.*)/i", $buffer, $x)) {
$this->name = $x[1]; //mostly "Photo"
$this->caption = chop($x[3]);
} else {