[geeklog-cvs] geeklog: Sync with admin/plugins.php (handle plugin tables)

geeklog-cvs at lists.geeklog.net geeklog-cvs at lists.geeklog.net
Mon Jan 5 05:06:13 EST 2009


details:   http://project.geeklog.net/cgi-bin/hgweb.cgi/rev/21181f35aea7
changeset: 6591:21181f35aea7
user:      Dirk Haun <dirk at haun-online.de>
date:      Fri Dec 26 11:56:01 2008 +0100
description:
Sync with admin/plugins.php (handle plugin tables)

diffstat:

1 file changed, 10 insertions(+), 2 deletions(-)
public_html/admin/install/lib-install.php |   12 ++++++++++--

diffs (36 lines):

diff -r 86f08a6dd0ad -r 21181f35aea7 public_html/admin/install/lib-install.php
--- a/public_html/admin/install/lib-install.php	Fri Dec 26 11:46:42 2008 +0100
+++ b/public_html/admin/install/lib-install.php	Fri Dec 26 11:56:01 2008 +0100
@@ -797,7 +797,7 @@
 */
 function INST_pluginAutoinstall($plugin, $inst_parms, $verbose = true)
 {
-    global $_CONF, $_TABLES, $_USER, $_DB_dbms;
+    global $_CONF, $_TABLES, $_USER, $_DB_dbms, $_DB_table_prefix;
 
     $fake_uid = false;
     if (!isset($_USER['uid'])) {
@@ -825,6 +825,14 @@
         return false;
     }
 
+    // add plugin tables, if any
+    if (! empty($inst_parms['tables'])) {
+        $tables = $inst_parms['tables'];                                       
+        foreach ($tables as $table) {
+            $_TABLES[$table] = $_DB_table_prefix . $table;
+        }
+    }
+
     // Create the plugin's group(s), if any
     $groups = array();
     $admin_group_id = 0;
@@ -832,7 +840,7 @@
         $groups = $inst_parms['groups'];
         foreach ($groups as $name => $desc) {
             if ($verbose) {
-                COM_errorLog("Attempting to create plugin '$name' group", 1);
+                COM_errorLog("Attempting to create '$name' group", 1);
             }
 
             $grp_name = addslashes($name);



More information about the geeklog-cvs mailing list