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
26fa60926b
commit
88287277b6
|
@ -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])) {
|
||||||
|
|
Loading…
Reference in a new issue