mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-04 23:17:02 +03:00
More functions without type hinting found and fixt
Use PECL yaml (else Spyc) Upgrade Spyc (with removed dump code)
This commit is contained in:
parent
cd3d8b94b2
commit
75b4b64118
43 changed files with 893 additions and 1482 deletions
|
|
@ -40,9 +40,14 @@ if (\class_exists('RainLoop\Api'))
|
|||
{
|
||||
\MailSo\Base\Loader::Init();
|
||||
|
||||
if (!\function_exists('spyc_load_file'))
|
||||
{
|
||||
include APP_VERSION_ROOT_PATH.'app/libraries/spyc/Spyc.php';
|
||||
if (!\function_exists('yaml_parse')) {
|
||||
include RAINLOOP_APP_LIBRARIES_PATH.'spyc/Spyc.php';
|
||||
function yaml_parse(string $input) {
|
||||
return \Spyc::YAMLLoadString($input);
|
||||
}
|
||||
function yaml_parse_file(string $filename) {
|
||||
return \Spyc::YAMLLoad($filename);
|
||||
}
|
||||
}
|
||||
|
||||
if (RAINLOOP_INCLUDE_AS_API_DEF)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue