From 1a3a8d0a0cd4ca7488f16fce1a7fc28d3123685b Mon Sep 17 00:00:00 2001 From: Will Rossiter Date: Tue, 30 Mar 2010 20:57:48 +0000 Subject: [PATCH] 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 --- code/AssetAdmin.php | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/code/AssetAdmin.php b/code/AssetAdmin.php index f81cef5c..ac6d687b 100755 --- a/code/AssetAdmin.php +++ b/code/AssetAdmin.php @@ -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:').''. - _t('AssetAdmin.NOWBROKEN2', 'Their owners have been emailed and they will fix up those pages.'); - } - + $script .= "statusMessage('$message');"; echo $script; }