[geeklog-cvs] geeklog: Handle plugins that don't have a public_html directory

geeklog-cvs at lists.geeklog.net geeklog-cvs at lists.geeklog.net
Sun Oct 5 10:46:37 EDT 2008


details:   http://project.geeklog.net/cgi-bin/hgweb.cgi/rev/69001156092c
changeset: 6427:69001156092c
user:      Dirk Haun <dirk at haun-online.de>
date:      Sun Oct 05 16:46:26 2008 +0200
description:
Handle plugins that don't have a public_html directory

diffstat:

1 file changed, 3 insertions(+), 1 deletion(-)
public_html/admin/plugins.php |    4 +++-

diffs (14 lines):

diff -r 527b34a8095b -r 69001156092c public_html/admin/plugins.php
--- a/public_html/admin/plugins.php	Sun Oct 05 15:35:41 2008 +0200
+++ b/public_html/admin/plugins.php	Sun Oct 05 16:46:26 2008 +0200
@@ -641,7 +641,9 @@
                 }
                 if ($upload_success) { 
 
-                    rename($_CONF['path'] . 'plugins/' . $pi_name . '/public_html', $_CONF['path_html'] . $pi_name);
+                    if (file_exists($_CONF['path'] . 'plugins/' . $pi_name . '/public_html')) {
+                        rename($_CONF['path'] . 'plugins/' . $pi_name . '/public_html', $_CONF['path_html'] . $pi_name);
+                    }
                     rename($_CONF['path'] . 'plugins/' . $pi_name . '/admin', $_CONF['path_html'] . 'admin/plugins/' . $pi_name);
 
                 }



More information about the geeklog-cvs mailing list