mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 06:05:56 +00:00
MINOR: removed duplication of variable and conditional that would never pass
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.4@101889 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
5ba4e2d09c
commit
1a3a8d0a0c
@ -626,11 +626,10 @@ JS;
|
||||
* Delete a folder
|
||||
*/
|
||||
public function deletefolder() {
|
||||
$script = '';
|
||||
$ids = split(' *, *', $_REQUEST['csvIDs']);
|
||||
$script = '';
|
||||
|
||||
if(!$ids) return false;
|
||||
$script = '';
|
||||
|
||||
foreach($ids as $id) {
|
||||
if(is_numeric($id)) {
|
||||
@ -649,12 +648,7 @@ JS;
|
||||
} else {
|
||||
$message = $size.' '._t('AssetAdmin.FOLDERDELETED', 'folder deleted.');
|
||||
}
|
||||
|
||||
if(isset($brokenPageList)) {
|
||||
$message .= ' '._t('AssetAdmin.NOWBROKEN', 'The following pages now have broken links:').'<ul>'.addslashes($brokenPageList).'</ul>'.
|
||||
_t('AssetAdmin.NOWBROKEN2', 'Their owners have been emailed and they will fix up those pages.');
|
||||
}
|
||||
|
||||
|
||||
$script .= "statusMessage('$message');";
|
||||
echo $script;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user