Update of /cvsroot/php-blog/additional_plugins
In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv15814
Modified Files:
emerge_spartacus.php
Log Message:
gitclone.sh autocommit
Index: emerge_spartacus.php
===================================================================
RCS file: /cvsroot/php-blog/additional_plugins/emerge_spartacus.php,v
retrieving revision 1.56
retrieving revision 1.57
diff -u -d -r1.56 -r1.57
--- emerge_spartacus.php 31 Mar 2017 20:35:50 -0000 1.56
+++ emerge_spartacus.php 12 Apr 2017 20:34:52 -0000 1.57
@@ -50,7 +50,10 @@
foreach($plugins AS $plugin_name => $plugin_data) {
$path = $this->pluginpath . '/' . $plugin_data['pluginPath'] . '/';
- if (preg_match('@/alpha/@i', $path)) continue;
+ if (preg_match('@/alpha/@i', $path)) {
+ unset($plugins[$plugin_name]);
+ continue;
+ }
include_once $path . $plugin_data['name'] . '.php';
$plugins[$plugin_name]['plugin'] = new $plugin_data['name']($plugin_name);
$plugin =&$plugins[$plugin_name]['plugin'];
@@ -68,6 +71,7 @@
echo 'Successfully loaded plugin ' . $plugin_name . "\n";
} else {
echo 'Error loading plugin ' . $plugin_name . ' (' . $plugin_data['pluginPath'] . ')' . "\n";
+ unset($plugins[$plugin_name]);
}
$this->memSnap($plugin_name);
unset($plugins[$plugin_name]['plugin']);
@@ -139,6 +143,9 @@
$olddir = getcwd();
chdir($dir);
$info['files'] = $this->get_files($path['name']);
+ if (count($info['files']) == 0) {
+ continue;
+ }
chdir($olddir);
$td = '';
|