mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
Template/Update (Part 16)
* convert amalgamation utility.php into separate endpoints
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user