Browse Source

Fixes

pull/3/head
M@d D3n 4 years ago
parent
commit
f35aab1abc
  1. 6
      admin/functions/func.admin.common.php
  2. 2
      class/class.modules.php
  3. 17
      functions/func.common.php

6
admin/functions/func.admin.common.php

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

2
class/class.modules.php

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

17
functions/func.common.php

@ -1390,4 +1390,21 @@
return strtolower(substr(strrchr($path, "."), 1)); 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…
Cancel
Save