aboutsummaryrefslogtreecommitdiffstats
path: root/include/common.inc.php
diff options
context:
space:
mode:
authorEric <eric@piwigo.org>2009-08-17 16:21:09 +0000
committerEric <eric@piwigo.org>2009-08-17 16:21:09 +0000
commitbac7567b5c5a994642cede7fd0c4298e0b2d2389 (patch)
tree970329898f5be8a89cb265222e15b6c0d5deef8c /include/common.inc.php
parent3aeef9ac266d304115b62442ace9fa8513646b97 (diff)
PHP 5.3 compatibility - Deprecated functions were replace as follows :
ereg() -> preg_match() ereg_replace() -> preg_replace() eregi() -> preg_match() with the 'i' modifier eregi_replace() -> preg_replace() with the 'i' modifier set_magic_quotes_runtime() -> No more usefull. Fixed it by adding "@" prefix. git-svn-id: http://piwigo.org/svn/trunk@3747 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'include/common.inc.php')
-rw-r--r--include/common.inc.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/common.inc.php b/include/common.inc.php
index 448d28ae1..925855a19 100644
--- a/include/common.inc.php
+++ b/include/common.inc.php
@@ -28,7 +28,7 @@ $t1 = explode( ' ', microtime() );
$t2 = explode( '.', $t1[0] );
$t2 = $t1[1].'.'.$t2[1];
-set_magic_quotes_runtime(0); // Disable magic_quotes_runtime
+@set_magic_quotes_runtime(0); // Disable magic_quotes_runtime
//
// addslashes to vars if magic_quotes_gpc is off this is a security