[geeklog-cvs] geeklog: Handle missing plugin name
geeklog-cvs at lists.geeklog.net
geeklog-cvs at lists.geeklog.net
Mon Jan 5 05:06:14 EST 2009
details: http://project.geeklog.net/cgi-bin/hgweb.cgi/rev/e403a16fe4ca
changeset: 6592:e403a16fe4ca
user: Dirk Haun <dirk at haun-online.de>
date: Fri Dec 26 12:00:01 2008 +0100
description:
Handle missing plugin name
diffstat:
1 file changed, 4 insertions(+)
public_html/admin/install/install-plugins.php | 4 ++++
diffs (14 lines):
diff -r 21181f35aea7 -r e403a16fe4ca public_html/admin/install/install-plugins.php
--- a/public_html/admin/install/install-plugins.php Fri Dec 26 11:56:01 2008 +0100
+++ b/public_html/admin/install/install-plugins.php Fri Dec 26 12:00:01 2008 +0100
@@ -190,6 +190,10 @@
// Some plugins don't have $pi_name set in their install.php file,
// This means our regex won't work and we should just use $dirname
if (preg_match('/\<\?php/', $pi_name) || preg_match('/--/', $pi_name)) {
+
+ $pi_name = $dirname;
+
+ } elseif (empty($pi_name)) {
$pi_name = $dirname;
More information about the geeklog-cvs
mailing list