From bd762b04f506888e5968bf55d7a4c58fac86d0f9 Mon Sep 17 00:00:00 2001 From: rysi3k Date: Fri, 2 Aug 2013 09:30:02 +0200 Subject: [PATCH] Small fixes: 5.5 support without warning and relative paths for sql file --- README | 10 ++++++---- fix-serialization.php | 10 ++++++---- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/README b/README index 8dca8a7..3bf8d4f 100644 --- a/README +++ b/README @@ -15,11 +15,13 @@ How to use: sh replace.sh + Licensed under the GPL version 3 or later: http://www.gnu.org/licenses/gpl.txt -Regards, -Pau Iglesias -Blogestudio -http://blogestudio.com/ +=========== + +Fixes by rysi3k: +- preg_replace modifier "e" is deprecated since PHP 5.5, so replaced with preg_replace_callback +- removed dirname(__FILE__) in file path allows to use relative paths for script and sql file diff --git a/fix-serialization.php b/fix-serialization.php index 2795801..acad721 100755 --- a/fix-serialization.php +++ b/fix-serialization.php @@ -1,6 +1,5 @@ #!/usr/bin/php \ No newline at end of file +?>