From: garvinhicking Date: Mon, 12 Sep 2005 11:39:32 +0000 (+0000) Subject: Debug empty filelist X-Git-Tag: 0.9~154 X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=d1b4890555e099a925950bd272f8c9b1b3d62bdb;p=s9y.git Debug empty filelist --- diff --git a/plugins/serendipity_event_spartacus/serendipity_event_spartacus.php b/plugins/serendipity_event_spartacus/serendipity_event_spartacus.php index 684fd51..bd0420d 100644 --- a/plugins/serendipity_event_spartacus/serendipity_event_spartacus.php +++ b/plugins/serendipity_event_spartacus/serendipity_event_spartacus.php @@ -44,7 +44,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.1'); + $propbag->add('version', '2.2'); $propbag->add('requirements', array( 'serendipity' => '0.9', 'smarty' => '2.6.7', @@ -637,6 +637,11 @@ class serendipity_event_spartacus extends serendipity_event } } + if (count($files) == 0) { + echo "DEBUG: ERROR: XML tree did not contain requested plugin:
\n"; + print_r($tree); + } + $mirrors = $this->getMirrors('files', true); $mirror = $mirrors[$this->get_config('mirror_files', 0)];