Version 0.9 ()
------------------------------------------------------------------------
+ * Spartacus plugin can now properly handle plugins which contain both
+ sidebar and event plugins in one directory (garvinhicking)
+
* TEMPLATES: Added div.serendipity_section_(comments|trackbacks|commentform)
containers inside the Default Template's entries.tpl file to be
able to customize certain containers via CSS.
@define('PLUGIN_EVENT_SPARTACUS_FETCHING', 'Versuche URL %s zu öffnen...');
@define('PLUGIN_EVENT_SPARTACUS_FETCHED_BYTES_URL', '%s bytes von obiger URL geladen. Speichere Inhalt als %s...');
@define('PLUGIN_EVENT_SPARTACUS_FETCHED_BYTES_CACHE', '%s bytes von bereits bestehender Datei geladen. Speichere Inhalt als %s...');
- @define('PLUGIN_EVENT_SPARTACUS_FETCHED_DONE', 'Data successfully fetched.');
+ @define('PLUGIN_EVENT_SPARTACUS_FETCHED_DONE', 'Daten erfolgreich geladen.');
break;
case 'en':
$propbag->add('description', PLUGIN_EVENT_SPARTACUS_DESC);
$propbag->add('stackable', false);
$propbag->add('author', 'Garvin Hicking');
- $propbag->add('version', '1.1');
+ $propbag->add('version', '1.2');
$propbag->add('requirements', array(
'serendipity' => '0.8',
'smarty' => '2.6.7',
$target = $pdir . $file;
@mkdir($pdir . $plugin_to_install);
$this->fetchfile($url, $target);
+ if (!isset($baseDir)) {
+ $baseDirs = explode('/', $file);
+ $baseDir = $baseDirs[0];
+ }
+ }
+
+ if (isset($baseDir)) {
+ return $baseDir;
}
}
case 'backend_plugins_fetchplugin':
if (!empty($eventData['GET']['spartacus_fetch'])) {
- $this->download($this->fetchOnline($eventData['GET']['spartacus_fetch']), $eventData['GET']['install_plugin']);
- $eventData['GET']['pluginPath'] = $eventData['GET']['install_plugin'];
+ $baseDir = $this->download($this->fetchOnline($eventData['GET']['spartacus_fetch']), $eventData['GET']['install_plugin']);
+ if (!empty($baseDir)) {
+ $eventData['GET']['pluginPath'] = $baseDir;
+ } else {
+ $eventData['GET']['pluginPath'] = $eventData['GET']['install_plugin'];
+ }
if ($eventData['GET']['spartacus_upgrade']) {
$eventData['install'] = false;