function display($resource_name, $cache_id = null, $compile_id = null) { $this->_getResourceInfo($resource_name); // Saves resource info to a Smarty class var for debugging $_t3_fetch_result = $this->fetch($resource_name, tx_smarty_div::getCacheID($cache_id), $compile_id); if ($this->debugging) { // Debugging will have been evaluated in fetch require_once SMARTY_CORE_DIR . 'core.display_debug_console.php'; $_t3_fetch_result .= smarty_core_display_debug_console(array(), $this); } return $_t3_fetch_result; }
/** * Note: This function is required but not available in earlier TYPO3 versions * Removes dots "." from end of a key identifier of TypoScript styled array. * array('key.' => array('property.' => 'value')) --> array('key' => array('property' => 'value')) * * @param array $ts: TypoScript configuration array * @return array TypoScript configuration array without dots at the end of all keys */ function removeDotsFromTS($ts) { $out = array(); if (is_array($ts)) { foreach ($ts as $key => $value) { if (is_array($value)) { $key = rtrim($key, '.'); $out[$key] = tx_smarty_div::removeDotsFromTS($value); } else { $out[$key] = $value; } } } return $out; }