[geeklog-hg] geeklog: Fixed a bug where the topic assignment table data are n...

geeklog-cvs at lists.geeklog.net geeklog-cvs at lists.geeklog.net
Mon Dec 1 06:42:20 EST 2014


changeset 9558:e31afd322e94
url:  http://project.geeklog.net/cgi-bin/hgwebdir.cgi/geeklog/rev/e31afd322e94
user: dengen <taharaxp at gmail.com>
date: Mon Dec 01 20:41:59 2014 +0900
description:
Fixed a bug where the topic assignment table data are not properly removed when any of the plugin is uninstalled

diffstat:

 system/lib-plugins.php |  5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diffs (15 lines):

diff -r 0c3bc3f68adb -r e31afd322e94 system/lib-plugins.php
--- a/system/lib-plugins.php	Sun Nov 30 21:25:05 2014 +0900
+++ b/system/lib-plugins.php	Mon Dec 01 20:41:59 2014 +0900
@@ -353,6 +353,11 @@
         DB_delete($_TABLES['conf_values'], 'group_name', $type);
         COM_errorLog('...success', 1);
 
+        // remove topic assignment table data for this plugin
+        COM_errorLog("Attempting to remove topic assignments table records for $type", 1);
+        DB_delete($_TABLES['topic_assignments'], 'type', $type);
+        COM_errorLog('...success', 1);
+
         // uninstall the plugin
         COM_errorLog("Attempting to unregister the $type plugin from Geeklog", 1);
         DB_delete($_TABLES['plugins'], 'pi_name', $type);



More information about the geeklog-cvs mailing list