This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "FusionForge".
The branch, 6.0 has been updated
via 9a852b322a9274301360d83dee14ce5c07ae63cb (commit)
from 647b5d783f3c73baee6a5c12831aca6c27a067a7 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
https://scm.fusionforge.org/anonscm/gitweb/?p=fusionforge/fusionforge.git;a=commitdiff;h=9a852b322a9274301360d83dee14ce5c07ae63cb
commit 9a852b322a9274301360d83dee14ce5c07ae63cb
Author: Sylvain Beucler <[email protected]>
Date: Thu Nov 5 16:12:33 2015 +0100
plugin: s/-/_/ when looking for existing plugin tables
diff --git a/src/common/include/Plugin.class.php
b/src/common/include/Plugin.class.php
index 1564e11..985b691 100644
--- a/src/common/include/Plugin.class.php
+++ b/src/common/include/Plugin.class.php
@@ -233,8 +233,9 @@ class Plugin extends Error {
$di = new DatabaseInstaller($name, $path);
// Search for database tables, if present then upgrade.
+ $tablename = str_replace('-', '_', $name);
$res=db_query_params ('SELECT COUNT(*) FROM pg_class WHERE
(relname=$1 OR relname like $2) AND relkind=$3',
- array ('plugin_'.$name, 'plugin_'.$name.'_%', 'r'));
+ array ('plugin_'.$tablename, 'plugin_'.$tablename.'_%',
'r'));
$count = db_result($res,0,0);
if ($count == 0) {
$di->install();
-----------------------------------------------------------------------
Summary of changes:
src/common/include/Plugin.class.php | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
hooks/post-receive
--
FusionForge
_______________________________________________
Fusionforge-commits mailing list
[email protected]
http://lists.fusionforge.org/cgi-bin/mailman/listinfo/fusionforge-commits