|
|
@@ -1630,11 +1630,6 @@ class BxDolTemplate extends BxDolFactory implements iBxDolSingleton
|
|
|
function parseHtmlByName($sName, $aVariables, $mixedKeyWrapperHtml = null, $sCheckIn = BX_DOL_TEMPLATE_CHECK_IN_BOTH)
|
|
|
{
|
|
|
if (isset($GLOBALS['bx_profiler'])) $GLOBALS['bx_profiler']->beginTemplate($sName, $sRand = time().rand());
|
|
|
-
|
|
|
- if (defined('BX_API') && constant('BX_API')) {
|
|
|
- if (isset($GLOBALS['bx_profiler'])) $GLOBALS['bx_profiler']->endTemplate($sName, $sRand, $sContent, false);
|
|
|
- return $aVariables;
|
|
|
- }
|
|
|
|
|
|
if (($sContent = $this->getCached($sName, $aVariables, $mixedKeyWrapperHtml, $sCheckIn)) !== false) {
|
|
|
if (isset($GLOBALS['bx_profiler'])) $GLOBALS['bx_profiler']->endTemplate($sName, $sRand, $sContent, true);
|
|
|
@@ -2939,8 +2934,7 @@ class BxDolTemplate extends BxDolFactory implements iBxDolSingleton
|
|
|
));
|
|
|
|
|
|
//--- Parse Predefined Keys ---//
|
|
|
- if (!defined('BX_API') || !constant('BX_API'))
|
|
|
- $sContent = preg_replace($aKeys, $aValues, $sContent);
|
|
|
+ $sContent = preg_replace($aKeys, $aValues, $sContent);
|
|
|
|
|
|
//--- Parse System Keys ---//
|
|
|
try {
|