Project

General

Profile

Bug #15248 » delete_warning_newmsg.diff

Administrator Admin, 2008-08-29 21:24

View differences:

typo3/class.db_list_extra.inc 2008-08-29 21:20:03.000000000 +0200
if (
($table=='pages' && ($localCalcPerms&4)) || ($table!='pages' && ($this->calcPerms&16))
) {
$titleOrig = htmlspecialchars(t3lib_BEfunc::getRecordTitle($table,$row,FALSE,TRUE));
$titleLength = $GLOBALS['BE_USER']->uc['titleLen'];
if (!$titleLength || !t3lib_div::testInt($titleLength) || $titleLength < 0) {
$titleLength = 30;
}
$title = t3lib_div::fixed_lgd_cs($titleOrig, $titleLength);
$params='&cmd['.$table.']['.$row['uid'].'][delete]=1';
$cells['delete']='<a href="#" onclick="'.htmlspecialchars('if (confirm('.$LANG->JScharCode($LANG->getLL('deleteWarning').t3lib_BEfunc::referenceCount($table,$row['uid'],' (There are %s reference(s) to this record!)')).')) {jumpToUrl(\''.$SOBE->doc->issueCommand($params,-1).'\');} return false;').'">'.
$cells['delete']='<a href="#" onclick="'.htmlspecialchars('if (confirm('.$LANG->JScharCode(sprintf($LANG->getLL('deleteWarningTitle'), $title).t3lib_BEfunc::referenceCount($table,$row['uid'],$LANG->getLL('referenceWarning'))).')) {jumpToUrl(\''.$SOBE->doc->issueCommand($params,-1).'\');} return false;').'">'.
'<img'.t3lib_iconWorks::skinImg($this->backPath,'gfx/garbage.gif','width="11" height="12"').' title="'.$LANG->getLL('delete',1).'" alt="" />'.
'</a>';
} elseif(!$this->table) {
typo3/sysext/lang/locallang_mod_web_list.xml 2008-08-29 21:20:09.000000000 +0200
<label index="multipleLanguages">All languages</label>
<label index="Localize">Localize to:</label>
<label index="viewRecords">Viewing records of</label>
<label index="deleteWarningTitle">Are you sure you want to delete the record &quot;%s&quot;?</label>
<label index="referenceWarning"> (There are %s reference(s) to this record!)</label>
</languageKey>
</data>
</T3locallang>
(3-3/3)