From 8e68536f3691e67ca9e0e2c888943aab42e4aede Mon Sep 17 00:00:00 2001 From: Awilum Date: Sun, 9 Dec 2012 19:32:09 +0200 Subject: [PATCH] FilesmanagerPlugin: fixes. --- .../box/filesmanager/views/backend/index.view.php | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/plugins/box/filesmanager/views/backend/index.view.php b/plugins/box/filesmanager/views/backend/index.view.php index ddaf480..9894acd 100755 --- a/plugins/box/filesmanager/views/backend/index.view.php +++ b/plugins/box/filesmanager/views/backend/index.view.php @@ -7,7 +7,7 @@ Form::open(null, array('enctype' => 'multipart/form-data')). Form::hidden('csrf', Security::token()). Form::input('file', null, array('type' => 'file', 'size' => '25')).Html::br(). - Form::submit('upload_file', __('Upload', 'filesmanager'), array('class' => 'btn')). + Form::submit('upload_file', __('Upload', 'filesmanager'), array('class' => 'btn btn-small')). Form::close() ) ?> @@ -18,11 +18,19 @@ $value) { + if ($path_parts[$key] == '') { + unset($path_parts[$key]); + } + } + $s = ''; + foreach ($path_parts as $p) { $s .= $p.'/'; if($p == $current[count($current)-2]) $active = ' class="active"'; else $active = ''; - echo '/ '.$p.''; + echo ''.$p.' /'; } ?>