mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-06-17 07:10:48 +03:00
fix
This commit is contained in:
parent
26fa60926b
commit
88287277b6
|
@ -206,7 +206,7 @@ abstract class Plugin extends Object {
|
|||
* @return string
|
||||
*/
|
||||
static public function GetTemplatePath($sName) {
|
||||
$sName = preg_match('/^Plugin([\w]+)$/i',$sName,$aMatches)
|
||||
$sName = preg_match('/^Plugin([\w]+)(_[\w]+)?$/Ui',$sName,$aMatches)
|
||||
? strtolower($aMatches[1])
|
||||
: strtolower($sName);
|
||||
if(!isset(self::$aTemplatePath[$sName])) {
|
||||
|
@ -228,7 +228,7 @@ abstract class Plugin extends Object {
|
|||
* @return string
|
||||
*/
|
||||
static public function GetTemplateWebPath($sName) {
|
||||
$sName = preg_match('/^Plugin([\w]+)$/i',$sName,$aMatches)
|
||||
$sName = preg_match('/^Plugin([\w]+)(_[\w]+)?$/Ui',$sName,$aMatches)
|
||||
? strtolower($aMatches[1])
|
||||
: strtolower($sName);
|
||||
if(!isset(self::$aTemplateWebPath[$sName])) {
|
||||
|
|
Loading…
Reference in a new issue