Template/Update (Part 16)

* convert amalgamation utility.php into separate endpoints
This commit is contained in:
Sarjuuk
2025-08-08 02:29:59 +02:00
parent 503b9458e0
commit 70e4bca10f
14 changed files with 576 additions and 331 deletions

View File

@@ -113,7 +113,7 @@ class CommunityContent
continue;
foreach ($obj->iterate() as $id => $__)
self::$subjCache[$type][$id] = $obj->getField('name', true);
self::$subjCache[$type][$id] = $obj->getField('name', true, true);
}
}

View File

@@ -62,6 +62,15 @@ trait TrRss
}
}
// pretty print for debug
if (Cfg::get('DEBUG') >= LOG_LEVEL_INFO)
{
$dom = new \DOMDocument('1.0');
$dom->formatOutput = true;
$dom->loadXML($root->asXML());
return $dom->saveXML();
}
return $root->asXML();
}
}