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:
Will Rossiter 2010-03-30 20:57:48 +00:00 committed by Sam Minnee
parent 5ba4e2d09c
commit 1a3a8d0a0c

View File

@ -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;
}