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 * Delete a folder
*/ */
public function deletefolder() { public function deletefolder() {
$script = '';
$ids = split(' *, *', $_REQUEST['csvIDs']); $ids = split(' *, *', $_REQUEST['csvIDs']);
$script = '';
if(!$ids) return false; if(!$ids) return false;
$script = '';
foreach($ids as $id) { foreach($ids as $id) {
if(is_numeric($id)) { if(is_numeric($id)) {
@ -650,11 +649,6 @@ JS;
$message = $size.' '._t('AssetAdmin.FOLDERDELETED', 'folder deleted.'); $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');"; $script .= "statusMessage('$message');";
echo $script; echo $script;
} }