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
29a31b8196
commit
e6533ed835
|
@ -139,7 +139,7 @@ abstract class Plugin extends Object {
|
|||
static public function GetTemplatePath($sName) {
|
||||
$sName = preg_match('/^Plugin([\w]+)$/i',$sName,$aMatches)
|
||||
? strtolower($aMatches[1])
|
||||
: $sName;
|
||||
: strtolower($sName);
|
||||
if(!isset(self::$aTemplatePath[$sName])) {
|
||||
$sTemplateName=in_array(Config::Get('view.skin'),array_map('basename',glob(Config::Get('path.root.server').'/plugins/'.$sName.'/templates/skin/*',GLOB_ONLYDIR)))
|
||||
? Config::Get('view.skin')
|
||||
|
|
Loading…
Reference in a new issue