1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-06-26 03:30:48 +03:00
This commit is contained in:
Alexey Kachayev 2010-01-15 18:18:54 +00:00
parent 29a31b8196
commit e6533ed835

View file

@ -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')