1
0

allowing to specify cleanup as string or array

This commit is contained in:
Roland Angerer
2013-06-21 13:46:29 +02:00
parent 067c94e671
commit 933c1741cb

View File

@ -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) {