$is_plugin_editable = ($is_plugin_owner || $plugin_data['authorid'] == '0');
if (!is_object($plugin)) {
- $name = ERROR . ': ' . $plugin_data['name'];
- $desc = ERROR . '!';
+ $name = $title = ERROR . '!';
+ $desc = ERROR . ': ' . $plugin_data['name'];
+ $can_configure = false;
} else {
/* query for its name, description and configuration data */
'title' => $title,
'content' => $content);
}
- } elseif ($show_plugin !== FALSE) {
+ } else {
$pluginData[] = array('side' => $side,
'title' => ERROR,
+ 'class' => $class,
'content' => sprintf(INCLUDE_ERROR, $plugin_data['name']));
}
}
$propbag->add('description', PLUGIN_EVENT_SPARTACUS_DESC);
$propbag->add('stackable', false);
$propbag->add('author', 'Garvin Hicking');
- $propbag->add('version', '2.01');
+ $propbag->add('version', '2.02');
$propbag->add('requirements', array(
'serendipity' => '0.9',
'smarty' => '2.6.7',
case 'backend_plugins_fetchplugin':
if (!empty($eventData['GET']['spartacus_fetch'])) {
$baseDir = $this->download($this->fetchOnline($eventData['GET']['spartacus_fetch'], true), $eventData['GET']['install_plugin']);
- if (!empty($baseDir)) {
+
+ if ($baseDir === false) {
+ $eventData['install'] = false;
+ } elseif (!empty($baseDir)) {
$eventData['GET']['pluginPath'] = $baseDir;
} else {
$eventData['GET']['pluginPath'] = $eventData['GET']['install_plugin'];