1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-07-08 09:24:25 +03:00

func_list_plugins, древний баг

This commit is contained in:
Sergey S Yaglov 2012-01-24 09:51:22 +03:00
parent 42ecd8c36d
commit 56f2eb0924

View file

@ -443,7 +443,7 @@ function func_list_plugins($bAll = false){
$aPlugin = array(); $aPlugin = array();
if($bAll){ if($bAll){
$aPluginRaw = array(); $aPluginRaw = array();
$aPaths = glob("$aPluginRaw/*", GLOB_ONLYDIR); $aPaths = glob("$sPluginsDir/*", GLOB_ONLYDIR);
if($aPaths) if($aPaths)
foreach($aPaths as $sPath){ foreach($aPaths as $sPath){
$aPluginRaw[] = basename($sPath); $aPluginRaw[] = basename($sPath);