This commit is contained in:
M@d D3n 2020-08-04 12:52:44 +03:00
parent 144fcec62f
commit f35aab1abc
3 changed files with 23 additions and 2 deletions

View File

@ -304,11 +304,11 @@
function getInstaledModules()
{
global $AVE_DB, $AVE_Template, $AVE_Module;
global $AVE_Template, $AVE_Module;
$modules = $AVE_Module->_modules;
$modules_instaled = array();
$modules_instaled = [];
foreach ($modules AS $module)
{
@ -321,6 +321,8 @@
unset ($modules);
$modules_instaled = msort($modules_instaled,'ModuleName');
$AVE_Template->assign('modules', $modules_instaled);
}

View File

@ -125,6 +125,8 @@
// Закрываем папку
$d->Close();
$modules = msort($modules,'ModuleName');
return $modules;
}

View File

@ -1390,4 +1390,21 @@
return strtolower(substr(strrchr($path, "."), 1));
}
}
if (! function_exists('fixSerialize'))
{
function fixSerialize($string)
{
$fixed = preg_replace_callback(
'/s:([0-9]+):\"(.*?)\";/',
function ($matches) {
return "s:".strlen($matches[2]).':"'.$matches[2].'";';
},
$string
);
return $fixed;
}
}
?>