Fluid-4277.patch

Sebastian Kurfuerst, 2009-08-31 15:29

Download (1.64 KB)

View differences:

Classes/ViewHelpers/RenderViewHelper.php (working copy)
42 42
	 */
43 43
	public function render($section = '', $partial = '', $arguments = array()) {
44 44
		if ($partial !== '') {
45
			return $this->viewHelperVariableContainer->getView()->renderPartial($partial, $section, $arguments);
45
			return $this->viewHelperVariableContainer->getView()->renderPartial($partial, $section, $arguments, $this->viewHelperVariableContainer);
46 46
		} elseif ($section !== '') {
47 47
			return $this->viewHelperVariableContainer->getView()->renderSection($section);
48 48
		}
Classes/View/TemplateView.php (working copy)
277 277
	 * @author Bastian Waidelich <bastian@typo3.org>
278 278
	 * @author Robert Lemke <robert@typo3.org>
279 279
	 */
280
	public function renderPartial($partialName, $sectionToRender, array $variables) {
280
	public function renderPartial($partialName, $sectionToRender, array $variables, $viewHelperVariableContainer) {
281 281
		$partial = $this->parseTemplate($this->resolvePartialPathAndFilename($partialName));
282 282
		$variableContainer = $this->objectFactory->create('F3\Fluid\Core\ViewHelper\TemplateVariableContainer', $variables);
283 283
		$renderingContext = $this->buildRenderingContext($variableContainer);
284
		$renderingContext->setViewHelperVariableContainer($viewHelperVariableContainer);
284 285
		return $partial->render($renderingContext);
285 286
	}
286 287