replace temp var name that made it into source control 😅

This commit is contained in:
Alexis Marie Wright 2022-04-15 09:09:04 -04:00
parent 8bc0a50e8f
commit f085b6bcb5
1 changed files with 4 additions and 4 deletions

View File

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