af_comics_gocomics: fix indenting
This commit is contained in:
parent
061fe3f1da
commit
9203929c28
|
@ -29,18 +29,16 @@ class Af_Comics_GoComics extends Af_ComicFilter {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!$basenode) {
|
if (!$basenode) {
|
||||||
// fallback on the smaller version
|
// fallback on the smaller version
|
||||||
foreach ($entries as $entry) {
|
foreach ($entries as $entry) {
|
||||||
|
if (preg_match("/(http:\/\/assets.amuniversal.com\/.*)/i", $entry->getAttribute("src"), $matches)) {
|
||||||
if (preg_match("/(http:\/\/assets.amuniversal.com\/.*)/i", $entry->getAttribute("src"), $matches)) {
|
$entry->setAttribute("src", $matches[0]);
|
||||||
|
$basenode = $entry;
|
||||||
$entry->setAttribute("src", $matches[0]);
|
break;
|
||||||
$basenode = $entry;
|
}
|
||||||
break;
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($basenode) {
|
if ($basenode) {
|
||||||
$article["content"] = $doc->saveXML($basenode);
|
$article["content"] = $doc->saveXML($basenode);
|
||||||
|
|
Loading…
Reference in New Issue