diff options
| author | Roland Angerer <dev@rangerer.at> | 2013-06-21 13:46:29 +0200 |
|---|---|---|
| committer | Roland Angerer <dev@rangerer.at> | 2013-06-21 13:46:29 +0200 |
| commit | 933c1741cb3d684625dfad6b8b9ecc630a317623 (patch) | |
| tree | ae2bc683bca1aa5b61da1d0bba02b5fb8c539709 | |
| parent | 067c94e671a29d5e369e0f330da89b77b4c6ac73 (diff) | |
| download | yafpp-933c1741cb3d684625dfad6b8b9ecc630a317623.tar.gz yafpp-933c1741cb3d684625dfad6b8b9ecc630a317623.zip | |
allowing to specify cleanup as string or array
| -rw-r--r-- | init.php | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -118,6 +118,9 @@ class Af_Feedmod extends Plugin implements IHandler if ($basenode) { // remove nodes from cleanup configuration if (isset($config['cleanup'])) { + if (!is_array($config['cleanup']) { + $config['cleanup'] = array($config['cleanup']); + } foreach ($config['cleanup'] as $cleanup) { $nodelist = $xpath->query('//'.$cleanup, $basenode); foreach ($nodelist as $node) { |
