af_comics_gocomics: fix indenting

This commit is contained in:
Andrew Dolgov 2014-08-08 11:10:52 +04:00
parent 061fe3f1da
commit 9203929c28
1 changed files with 10 additions and 12 deletions

View File

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