[geeklog-hg] geeklog: Backed out changeset b7b53ec692fc

geeklog-cvs at lists.geeklog.net geeklog-cvs at lists.geeklog.net
Sun Jan 5 05:50:23 EST 2014


changeset 9388:0d953971f8cb
url:  http://project.geeklog.net/cgi-bin/hgwebdir.cgi/geeklog/rev/0d953971f8cb
user: Kenji ITO <mystralkk at gmail.com>
date: Sun Jan 05 19:49:11 2014 +0900
description:
Backed out changeset b7b53ec692fc

diffstat:

 public_html/admin/plugins.php |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (18 lines):

diff -r b7b53ec692fc -r 0d953971f8cb public_html/admin/plugins.php
--- a/public_html/admin/plugins.php	Sun Jan 05 18:19:05 2014 +0900
+++ b/public_html/admin/plugins.php	Sun Jan 05 19:49:11 2014 +0900
@@ -731,10 +731,10 @@
                     $pi_was_enabled = ($A['pi_enabled'] == 1);
                 }
 
-                // Prevents the existing plugin from being overwritten with
-                // the files uploaded
-                if ($pi_was_enabled || $pi_had_entry) {
-                    return COM_refresh($_CONF['site_admin_url'] . '/plugins.php?msg=99');
+                if ($pi_was_enabled) {
+                    // disable temporarily while we move the files around
+                    DB_change($_TABLES['plugins'], 'pi_enabled', 0,
+                                                   'pi_name', $dirname);
                 }
 
                 require_once 'System.php';



More information about the geeklog-cvs mailing list