[geeklog-cvs] geeklog: Set noreply_mail when updating from an old version
geeklog-cvs at lists.geeklog.net
geeklog-cvs at lists.geeklog.net
Mon Jan 5 05:07:04 EST 2009
details: http://project.geeklog.net/cgi-bin/hgweb.cgi/rev/4b7cb04f5988
changeset: 6625:4b7cb04f5988
user: Dirk Haun <dirk at haun-online.de>
date: Thu Jan 01 14:06:24 2009 +0100
description:
Set noreply_mail when updating from an old version
diffstat:
1 file changed, 7 insertions(+), 1 deletion(-)
public_html/admin/install/migrate.php | 8 +++++++-
diffs (25 lines):
diff -r c12f857524eb -r 4b7cb04f5988 public_html/admin/install/migrate.php
--- a/public_html/admin/install/migrate.php Thu Jan 01 13:50:40 2009 +0100
+++ b/public_html/admin/install/migrate.php Thu Jan 01 14:06:24 2009 +0100
@@ -8,7 +8,7 @@
// | |
// | Install Geeklog from a backup. |
// +---------------------------------------------------------------------------+
-// | Copyright (C) 2008 by the following authors: |
+// | Copyright (C) 2008-2009 by the following authors: |
// | |
// | Authors: Matt West - matt AT mattdanger DOT net |
// | Dirk Haun - dirk AT haun-online DOT de |
@@ -680,6 +680,12 @@
$_CONF['theme'] = 'professional';
}
+ // set noreply_mail when updating from an old version
+ if (empty($_CONF['noreply_mail']) && (! empty($_CONF['site_mail']))) {
+ $_CONF['noreply_mail'] = $_CONF['site_mail'];
+ $config->set('noreply_mail', $_CONF['noreply_mail']);
+ }
+
/**
* Check for missing plugins
*/
More information about the geeklog-cvs
mailing list