replace temp var name that made it into source control 😅
This commit is contained in:
parent
8bc0a50e8f
commit
f085b6bcb5
|
@ -7,16 +7,16 @@ include_once('lib/comic-page.php');
|
|||
include_once('lib/log.php');
|
||||
|
||||
function readFeed($path) {
|
||||
$awfulSinging = file_get_contents($path);
|
||||
$feedXmlRaw = file_get_contents($path);
|
||||
|
||||
if ($awfulSinging === false) {
|
||||
if ($feedXmlRaw === false) {
|
||||
Log::warn("Failed to read existing XML feed from " . $path);
|
||||
return null;
|
||||
};
|
||||
|
||||
Log::info("Read " . strlen($awfulSinging) . " bytes from " . $path);
|
||||
Log::info("Read " . strlen($feedXmlRaw) . " bytes from " . $path);
|
||||
|
||||
$xml = simplexml_load_string($awfulSinging);
|
||||
$xml = simplexml_load_string($feedXmlRaw);
|
||||
|
||||
$items = array();
|
||||
foreach ($xml->channel->item as $itemXml) {
|
||||
|
|
Loading…
Reference in New Issue