suppress warning if /lang/ folder does not exists

This commit is contained in:
Max Pozdeev 2020-09-04 14:50:09 +03:00
parent 47758f08c2
commit 756e4839db

View file

@ -97,7 +97,7 @@ function getLangs($withContents = 0)
/* deprecated */
function getOldLangs($withContents = 0)
{
if (!$h = opendir(MTTPATH. 'lang')) return false;
if (!$h = @opendir(MTTPATH. 'lang')) return false;
$a = array();
while(false !== ($file = readdir($h)))
{