Bug #21293 ยป patch-buttons_in_root.patch

Administrator Admin, 2009-10-17 14:16

View differences:

typo3/class.db_list_extra.inc (working copy)
173 173
				$noViewDokTypes = array('254', '255');
174 174
			}
175 175

  
176
			if (!in_array($this->pageRow['doktype'], $noViewDokTypes)) {
176
			if ($this->id != 0 && !in_array($this->pageRow['doktype'], $noViewDokTypes)) {
177 177
				$buttons['view'] = '<a href="#" onclick="' . htmlspecialchars(t3lib_BEfunc::viewOnClick($this->id, $this->backPath, t3lib_BEfunc::BEgetRootLine($this->id))) . '">' .
178 178
							'<img' . t3lib_iconWorks::skinImg($this->backPath, 'gfx/zoom.gif') . ' title="' . $LANG->sL('LLL:EXT:lang/locallang_core.php:labels.showPage', 1) . '" alt="" />' .
179 179
							'</a>';
......
232 232
			}
233 233

  
234 234
				// Cache
235
			$buttons['cache'] = '<a href="' . htmlspecialchars($this->listURL() . '&clear_cache=1') . '">' .
236
							'<img' . t3lib_iconWorks::skinImg($this->backPath, 'gfx/clear_cache.gif') . ' title="' . $LANG->sL('LLL:EXT:lang/locallang_core.php:labels.clear_cache', 1) . '" alt="" />' .
237
							'</a>';
235
			if ($this->id != 0) {
236
				$buttons['cache'] = '<a href="' . htmlspecialchars($this->listURL() . '&clear_cache=1') . '">' .
237
								'<img' . t3lib_iconWorks::skinImg($this->backPath, 'gfx/clear_cache.gif') . ' title="' . $LANG->sL('LLL:EXT:lang/locallang_core.php:labels.clear_cache', 1) . '" alt="" />' .
238
								'</a>';
239
			}
238 240

  
239 241
			if ($this->table) {
240 242

  
    (1-1/1)