Commit a0fc38fd authored by Benni Mack's avatar Benni Mack Committed by Andreas Fernandez
Browse files

[CLEANUP] Remove unused if statement in Backend Utility

Resolves: #66224
Releases: master
Change-Id: I9a3cbed8e7b9e44cfe46abcb2a0aa9f9a731801a
Reviewed-on: http://review.typo3.org/38409


Reviewed-by: Wouter Wolters's avatarWouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters's avatarWouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Oliver Klee's avatarOliver Klee <typo3-coding@oliverklee.de>
Reviewed-by: default avatarAndreas Fernandez <andreas.fernandez@aspedia.de>
Tested-by: default avatarAndreas Fernandez <andreas.fernandez@aspedia.de>
parent f641caee
......@@ -3188,15 +3188,10 @@ class BackendUtility {
* @param array $urlParameters URL parameters that should be added as key value pairs
* @param string $linkTitle title for the link tag
* @param string $linkText optional link text after the icon
* @return string A complete link tag or empty string
* @return string A complete <a href=""> tag
*/
static public function getListViewLink($urlParameters = array(), $linkTitle = '', $linkText = '') {
$url = self::getModuleUrl('web_list', $urlParameters);
if ($url === FALSE) {
return '';
} else {
return '<a href="' . htmlspecialchars($url) . '" title="' . htmlspecialchars($linkTitle) . '">' . IconUtility::getSpriteIcon('actions-system-list-open') . htmlspecialchars($linkText) . '</a>';
}
return '<a href="' . htmlspecialchars(self::getModuleUrl('web_list', $urlParameters)) . '" title="' . htmlspecialchars($linkTitle) . '">' . IconUtility::getSpriteIcon('actions-system-list-open') . htmlspecialchars($linkText) . '</a>';
}
/**
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment