AntonLV 8 лет назад
Родитель
Сommit
08ba974a68
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      template/scripts/BxBaseFunctions.php

+ 1 - 1
template/scripts/BxBaseFunctions.php

@@ -516,7 +516,7 @@ class BxBaseFunctions extends BxDolFactory implements iBxDolSingleton
 
 
         $aMethods = get_class_methods($this);
         $aMethods = get_class_methods($this);
         foreach($aMethods as $sMethod)
         foreach($aMethods as $sMethod)
-            if(substr($sMethod, 0, strlen($sPrefix)) == $sPrefix)
+            if(preg_match("/^(" . $sPrefix . ")[A-Z].+$/", $sMethod))
                 $sContent .= $this->$sMethod();
                 $sContent .= $this->$sMethod();
 
 
         return $sContent;
         return $sContent;