Merge branch '2.1' of https://github.com/s9y/Serendipity into 2.1
This commit is contained in:
plugins/serendipity_event_spartacus
12
plugins/serendipity_event_spartacus/ChangeLog
Normal file
12
plugins/serendipity_event_spartacus/ChangeLog
Normal file
@ -0,0 +1,12 @@
|
||||
2.37.5:
|
||||
-------
|
||||
* Fix missing reset to default after dropping netmirror.
|
||||
|
||||
2.37.4:
|
||||
-------
|
||||
* Drop netmirror, set mirror to default if it was set to netmirror.
|
||||
|
||||
2.37.3:
|
||||
-------
|
||||
* Change mirror order (new default: github)
|
||||
|
@ -27,7 +27,7 @@ class serendipity_event_spartacus extends serendipity_event
|
||||
$propbag->add('description', PLUGIN_EVENT_SPARTACUS_DESC);
|
||||
$propbag->add('stackable', false);
|
||||
$propbag->add('author', 'Garvin Hicking');
|
||||
$propbag->add('version', '2.37.4');
|
||||
$propbag->add('version', '2.37.5');
|
||||
$propbag->add('requirements', array(
|
||||
'serendipity' => '1.6',
|
||||
));
|
||||
@ -872,6 +872,9 @@ class serendipity_event_spartacus extends serendipity_event
|
||||
|
||||
$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) {
|
||||
@ -1035,9 +1038,9 @@ class serendipity_event_spartacus extends serendipity_event
|
||||
|
||||
$mirrors = $this->getMirrors('files', true);
|
||||
$mirror = $mirrors[$this->get_config('mirror_files', 0)];
|
||||
if ($mirror == null) {
|
||||
$mirror = $mirrors[0];
|
||||
}
|
||||
if ($mirror == null) {
|
||||
$mirror = $mirrors[0];
|
||||
}
|
||||
$custom = $this->get_config('custommirror');
|
||||
if (strlen($custom) > 2) {
|
||||
$servers = explode('|', $custom);
|
||||
|
Reference in New Issue
Block a user