mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-06-26 03:30:48 +03:00
fix
This commit is contained in:
parent
5c45be5788
commit
edfa7c0696
|
@ -45,6 +45,7 @@ abstract class ActionPlugin extends Action {
|
|||
/**
|
||||
* Проверяем в списке шаблонов
|
||||
*/
|
||||
$aMatches[1]=strtolower($aMatches[1]);
|
||||
$sTemplateName=in_array(Config::Get('view.skin'),array_map('basename',glob(Config::Get('path.root.server').'/classes/plugins/'.$aMatches[1].'/templates/skin/*',GLOB_ONLYDIR)))
|
||||
? Config::Get('view.skin')
|
||||
: 'default';
|
||||
|
|
|
@ -150,7 +150,11 @@ class LsPlugin extends Module {
|
|||
*/
|
||||
$aPlugins=@file($this->sPluginsDir.self::PLUGIN_ACTIVATION_FILE);
|
||||
|
||||
if(is_array($aPlugins)) $aPlugins = array_unique($aPlugins);
|
||||
if(is_array($aPlugins)) {
|
||||
$aPlugins = array_unique($aPlugins);
|
||||
} else {
|
||||
$aPlugins=array();
|
||||
}
|
||||
return $aPlugins;
|
||||
}
|
||||
|
||||
|
|
|
@ -450,7 +450,7 @@ class LsViewer extends Module {
|
|||
/**
|
||||
* Считаем что тип не определен
|
||||
*/
|
||||
throw new Exception('Can not find the block`s template: '.($sPlugin)?$this->ReplacePluginSkinName($sName,$sPlugin):$sName);
|
||||
throw new Exception('Can not find the block`s template: '.$sName);
|
||||
return 'undefined';
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue