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