[geeklog-cvs] geeklog: Update URL in $_CONF['ip_lookup'] during migration

geeklog-cvs at lists.geeklog.net geeklog-cvs at lists.geeklog.net
Sat Jun 13 17:49:27 EDT 2009


details:   http://project.geeklog.net/cgi-bin/hgweb.cgi/rev/3ccad374734d
changeset: 7118:3ccad374734d
user:      Dirk Haun <dirk at haun-online.de>
date:      Sat Jun 13 22:21:51 2009 +0200
description:
Update URL in $_CONF['ip_lookup'] during migration

diffstat:

 public_html/admin/install/migrate.php |  6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diffs (16 lines):

diff -r b32249a55222 -r 3ccad374734d public_html/admin/install/migrate.php
--- a/public_html/admin/install/migrate.php	Sat Jun 13 21:29:28 2009 +0200
+++ b/public_html/admin/install/migrate.php	Sat Jun 13 22:21:51 2009 +0200
@@ -785,6 +785,12 @@
             $config->set('noreply_mail', $_CONF['noreply_mail']);
         }
 
+        if (! empty($_OLD_CONF['ip_lookup'])) {
+            $_CONF['ip_lookup'] = str_replace($_OLD_CONF['site_url'],
+                $_CONF['site_url'], $_OLD_CONF['ip_lookup']);
+            $config->set('ip_lookup', $_CONF['ip_lookup']);
+        }
+
         /**
          * Check for missing plugins
          */



More information about the geeklog-cvs mailing list