Sfoglia il codice sorgente

#34 - JS/CSS in Template engine.

AntonLV 12 anni fa
parent
commit
25b31573bf
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  1. 2 1
      inc/classes/BxDolTemplate.php

+ 2 - 1
inc/classes/BxDolTemplate.php

@@ -1599,7 +1599,8 @@ class BxDolTemplate extends BxDol implements iBxDolSingleton
                         $sResult .= $this->$sMethodWrap($sUrl);
                     else {
                         $bFound = false;
-                        foreach($this->aPage[$sArrayKey]  as $iKey => $aValue)
+                        $aSearchIn = $bSystem ? $this->aPage[$sArrayKey] : array_merge($this->aPage[$sType . '_system'], $this->aPage[$sArrayKey]);
+                        foreach($aSearchIn as $iKey => $aValue)
                             if($aValue['url'] == $sUrl && $aValue['path'] == $sPath) {
                                 $bFound = true;
                                 break;