sergejey / majordomo

Home automation platform
MIT License
392 stars 157 forks source link

Errors in cycle.php #927

Open dx168b opened 3 years ago

dx168b commented 3 years ago

Please, fix next errors in arguments of function "removeTree()": "chached" This is a cache, not a Georgian chacha. :)

This errors i founded with XDebug for PHP.

if (is_dir(ROOT . 'cached')) {
    DebMes("Removing cache from " . ROOT . 'cached');
    removeTree(ROOT . 'chached');
}
if (is_dir(ROOT . 'cms/cached')) {
    DebMes("Removing cache from " . ROOT . 'cms/cached');
    removeTree(ROOT . 'cms/chached');
}

Corrected code from my server:

if (is_dir(ROOT . 'cached')) {
    DebMes("Removing cache from " . ROOT . 'cached');
    removeTree(ROOT . 'cached');
}
if (is_dir(ROOT . 'cms/cached')) {
    DebMes("Removing cache from " . ROOT . 'cms/cached');
    removeTree(ROOT . 'cms/cached');
}
xor2016 commented 3 years ago

by this chacha some modules - google locations, telegram and broadlink don't lost their parameters - cookies, avatars,... . Did you use this modules with your correct code?

dx168b commented 3 years ago

Yes. Im using Telegram module. But chat user avatars were not displayed before these fixes. Everything else worked as it did.