From 2274ce2dcf6576cb7547bb42b9b0c242c8c099f2 Mon Sep 17 00:00:00 2001 From: Damien Metzger Date: Fri, 22 Mar 2013 17:51:09 +0100 Subject: [PATCH] // Fixed button order --- classes/controller/AdminController.php | 44 +++++++++++++------------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/classes/controller/AdminController.php b/classes/controller/AdminController.php index daa5391f8..6de968b6f 100644 --- a/classes/controller/AdminController.php +++ b/classes/controller/AdminController.php @@ -2946,30 +2946,30 @@ class AdminControllerCore extends Controller 'text' => $this->translationsTab['Delete'], 'cond' => true, ), - ); - $return = ''; - foreach($modules_options as $option_name => $option) - { - if ($option['cond']) - { - if ($output_type == 'link') - $return .= ' - '.$option['text'].' - '; - else if ($output_type == 'select') - $return .= ''; - } - } - if ($output_type == 'select') - { - if (!$module->id) - $return = ''.$return; - else - $return = ''.$return; - $return = ''; + ); + $return = ''; + foreach ($modules_options as $option_name => $option) + { + if ($option['cond']) + { + if ($output_type == 'link') + $return .= ' + '.$option['text'].' + '; + elseif ($output_type == 'select') + $return .= ''; } - + } + if ($output_type == 'select') + { + if (!$module->id) + $return = ''.$return; + else + $return .= ''; + $return = ''; + } + return $return; } } \ No newline at end of file