linkViewHelpers.patch

Christian Zenker, 2010-08-25 09:42

Download (1.1 KB)

View differences:

Classes/ViewHelpers/Link/PageViewHelper.php (Arbeitskopie)
94 94
			->setArgumentsToBeExcludedFromQueryString($argumentsToBeExcludedFromQueryString)
95 95
			->build();
96 96

  
97
		if(empty($uri)) {
98
			return $this->renderChildren();
99
		}
100
		
97 101
		$this->tag->addAttribute('href', $uri);
98 102
		$this->tag->setContent($this->renderChildren());
99 103

  
Classes/ViewHelpers/Link/ActionViewHelper.php (Arbeitskopie)
88 88
			->setArgumentsToBeExcludedFromQueryString($argumentsToBeExcludedFromQueryString)
89 89
			->uriFor($action, $arguments, $controller, $extensionName, $pluginName);
90 90

  
91
		if(empty($uri)) {
92
			return $this->renderChildren();
93
		}
94
		
91 95
		$this->tag->addAttribute('href', $uri);
92 96
		$this->tag->setContent($this->renderChildren());
93 97