namespace Friendica\Util;
use Friendica\Core\Cache;
+use Friendica\Core\Logger;
use Exception;
/**
}
if ($recursion > 5) {
- logger('jsonld bomb detected at: ' . $url);
+ Logger::log('jsonld bomb detected at: ' . $url);
exit();
}
}
catch (Exception $e) {
$normalized = false;
- logger('normalise error:' . print_r($e, true), LOGGER_DEBUG);
+ Logger::log('normalise error:' . print_r($e, true), LOGGER_DEBUG);
}
return $normalized;
}
catch (Exception $e) {
$compacted = false;
- logger('compacting error:' . print_r($e, true), LOGGER_DEBUG);
+ Logger::log('compacting error:' . print_r($e, true), LOGGER_DEBUG);
}
return json_decode(json_encode($compacted, JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE), true);