[svn r21133] bugfix: fix breadcrumbs and feedback message

skala
Patrick Cool 16 years ago
parent 2977a114c1
commit cedb89291c
  1. 4
      main/dropbox/dropbox_functions.inc.php
  2. 4
      main/dropbox/dropbox_init.inc.php

@ -50,12 +50,12 @@ function handle_multiple_actions()
$dropboxfile=new Dropbox_Person( $_user['user_id'], $is_courseAdmin, $is_courseTutor);
foreach ($checked_file_ids as $key=>$value)
{
if ($_GET['view']=='received' OR !$_GET['view'])
if ($_GET['view']=='received')
{
$dropboxfile->deleteReceivedWork($value);
$message=get_lang('ReceivedFileDeleted');
}
if ($_GET['view']=='sent')
if ($_GET['view']=='sent' OR empty($_GET['view']))
{
$dropboxfile->deleteSentWork($value);
$message=get_lang('SentFileDeleted');

@ -287,7 +287,7 @@ if((!$is_allowed_in_course || !$is_courseMember) && !api_is_allowed_to_edit())
BREADCRUMBS
==============================================================================
*/
if (!$_GET['view'] OR $_GET['view']=='received')
if ($_GET['view']=='received')
{
$interbreadcrumb[] = array ("url" => "../dropbox/index.php", "name" => dropbox_lang("dropbox", "noDLTT"));
$nameTools = get_lang('ReceivedFiles');
@ -298,7 +298,7 @@ if (!$_GET['view'] OR $_GET['view']=='received')
$nameTools = get_lang('AddNewCategory');
}
}
if ($_GET['view']=='sent')
if ($_GET['view']=='sent' OR empty($_GET['view']))
{
$interbreadcrumb[] = array ("url" => "../dropbox/index.php", "name" => dropbox_lang("dropbox", "noDLTT"));
$nameTools = get_lang('SentFiles');

Loading…
Cancel
Save