Skip to content

Commit

Permalink
fix: Enable plugin updates without having to save config once in 2.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
onli committed Mar 28, 2018
1 parent 8c7ab8c commit 483868b
Showing 1 changed file with 5 additions and 3 deletions.
Expand Up @@ -27,7 +27,7 @@ function introspect(&$propbag)
$propbag->add('description', PLUGIN_EVENT_SPARTACUS_DESC);
$propbag->add('stackable', false);
$propbag->add('author', 'Garvin Hicking');
$propbag->add('version', '2.37.3');
$propbag->add('version', '2.37.4');
$propbag->add('requirements', array(
'serendipity' => '1.6',
));
Expand Down Expand Up @@ -1002,7 +1002,9 @@ function download(&$tree, $plugin_to_install, $sub = 'plugins')

$mirrors = $this->getMirrors('files', true);
$mirror = $mirrors[$this->get_config('mirror_files', 0)];

if ($mirror == null) {
$mirror = $mirrors[0];
}
$custom = $this->get_config('custommirror');
if (strlen($custom) > 2) {
$servers = explode('|', $custom);
Expand Down Expand Up @@ -1300,4 +1302,4 @@ function event_hook($event, &$bag, &$eventData, $addData = null)
}

/* vim: set sts=4 ts=4 expandtab : */
?>
?>

0 comments on commit 483868b

Please sign in to comment.