1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-06-17 07:10:48 +03:00
This commit is contained in:
Mzhelskiy Maxim 2010-05-01 13:59:03 +00:00
parent 26fa60926b
commit 88287277b6

View file

@ -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])) {