Project

General

Profile

Bug #21857 ยป substituteMarkerArrayCached.diff

Administrator Admin, 2009-12-14 16:00

View differences:

sysext/cms/tslib/class.tslib_content.php (working copy)
* @return string The output content stream
* @see substituteSubpart(), substituteMarker(), substituteMarkerInObject(), TEMPLATE()
*/
public function substituteMarkerArrayCached($content, array $markContentArray = NULL, array $subpartContentArray = NULL, array $wrappedSubpartContentArray = NULL) {
public function substituteMarkerArrayCached($content, array $markContentArray = array(), array $subpartContentArray = array(), array $wrappedSubpartContentArray = array()) {
$GLOBALS['TT']->push('substituteMarkerArrayCached');
// If not arrays then set them
if (is_null($markContentArray)) $markContentArray=array(); // Plain markers
if (is_null($subpartContentArray)) $subpartContentArray=array(); // Subparts being directly substituted
if (is_null($wrappedSubpartContentArray)) $wrappedSubpartContentArray=array(); // Subparts being wrapped
// Finding keys and check hash:
$sPkeys = array_keys($subpartContentArray);
$wPkeys = array_keys($wrappedSubpartContentArray);
    (1-1/1)