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) {
|
||||
// fallback on the smaller version
|
||||
foreach ($entries as $entry) {
|
||||
|
||||
if (preg_match("/(http:\/\/assets.amuniversal.com\/.*)/i", $entry->getAttribute("src"), $matches)) {
|
||||
|
||||
$entry->setAttribute("src", $matches[0]);
|
||||
$basenode = $entry;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (!$basenode) {
|
||||
// fallback on the smaller version
|
||||
foreach ($entries as $entry) {
|
||||
if (preg_match("/(http:\/\/assets.amuniversal.com\/.*)/i", $entry->getAttribute("src"), $matches)) {
|
||||
$entry->setAttribute("src", $matches[0]);
|
||||
$basenode = $entry;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if ($basenode) {
|
||||
$article["content"] = $doc->saveXML($basenode);
|
||||
|
|
Loading…
Reference in New Issue