From 0f4292e2919e3faef7907de397a9f5f950c8095b Mon Sep 17 00:00:00 2001 From: Julio Montoya Date: Mon, 10 Oct 2011 13:00:43 +0200 Subject: [PATCH] Removing "back to previous" link it doesn't work when typing an URL --- main/document/downloadfolder.inc.php | 2 +- main/inc/lib/main_api.lib.php | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/main/document/downloadfolder.inc.php b/main/document/downloadfolder.inc.php index 97c7a82f1f..3d080f3f37 100644 --- a/main/document/downloadfolder.inc.php +++ b/main/document/downloadfolder.inc.php @@ -22,7 +22,7 @@ if (empty($document_data)) { //a student should not be able to download a root shared directory if (($path == '/shared_folder' || $path=='/shared_folder_session_'.api_get_session_id()) && (!api_is_allowed_to_edit() || !api_is_platform_admin())){ echo '
'; - Display::display_error_message(get_lang('NotAllowedClickBack').'

'.get_lang('BackToPreviousPage').'
', false); + Display::display_error_message(get_lang('NotAllowedClickBack')); echo '
'; exit; } diff --git a/main/inc/lib/main_api.lib.php b/main/inc/lib/main_api.lib.php index bff07ad9a6..1836843e35 100644 --- a/main/inc/lib/main_api.lib.php +++ b/main/inc/lib/main_api.lib.php @@ -2381,7 +2381,8 @@ function api_not_allowed($print_headers = false) { '; } - $msg = Display::return_message(get_lang('NotAllowedClickBack').'

'.get_lang('BackToPreviousPage').'
', 'error', false); + //$msg = Display::return_message(get_lang('NotAllowedClickBack').'

'.get_lang('BackToPreviousPage').'
', 'error', false); + $msg = Display::return_message(get_lang('NotAllowedClickBack'), 'error', false); $msg = Display::div($msg, array('align'=>'center')); $tpl->assign('content', $msg);