mirror of
https://github.com/avecms/AVE.cms.git
synced 2025-01-22 07:20:07 +00:00
Fixes
This commit is contained in:
parent
144fcec62f
commit
f35aab1abc
@ -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);
|
||||
}
|
||||
|
||||
|
@ -125,6 +125,8 @@
|
||||
// Закрываем папку
|
||||
$d->Close();
|
||||
|
||||
$modules = msort($modules,'ModuleName');
|
||||
|
||||
return $modules;
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
?>
|
Loading…
x
Reference in New Issue
Block a user