From d1b4890555e099a925950bd272f8c9b1b3d62bdb Mon Sep 17 00:00:00 2001 From: garvinhicking Date: Mon, 12 Sep 2005 11:39:32 +0000 Subject: [PATCH] Debug empty filelist --- .../serendipity_event_spartacus.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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)]; -- 2.39.5