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:
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 * @return string
*/ */
static public function GetTemplatePath($sName) { 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($aMatches[1])
: strtolower($sName); : strtolower($sName);
if(!isset(self::$aTemplatePath[$sName])) { if(!isset(self::$aTemplatePath[$sName])) {
@ -228,7 +228,7 @@ abstract class Plugin extends Object {
* @return string * @return string
*/ */
static public function GetTemplateWebPath($sName) { 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($aMatches[1])
: strtolower($sName); : strtolower($sName);
if(!isset(self::$aTemplateWebPath[$sName])) { if(!isset(self::$aTemplateWebPath[$sName])) {