From c12374b0c851bceed2fc19ab3c7e0c5fa1d32cdd Mon Sep 17 00:00:00 2001 From: Yannick Warnier Date: Tue, 19 Jul 2016 22:09:21 -0500 Subject: [PATCH] Minor - Improve PPT uploading form to avoid loosing context on failure --- main/upload/upload_ppt.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/upload/upload_ppt.php b/main/upload/upload_ppt.php index 38647014c7..21cd86ce71 100755 --- a/main/upload/upload_ppt.php +++ b/main/upload/upload_ppt.php @@ -72,7 +72,7 @@ if (!empty($errorMessage)) { $div_upload_limit = get_lang('UploadMaxSize').' : '.ini_get('post_max_size'); -$form = new FormValidator('upload_ppt', 'POST', '', ''); +$form = new FormValidator('upload_ppt', 'POST', '?' . api_get_cidreq(), ''); $form->addElement('header', get_lang("WelcomeOogieSubtitle")); $form->addElement('html', Display::return_message($message, 'info', false)); $form->addElement('file', 'user_file', array(Display::return_icon('powerpoint_big.gif'), $div_upload_limit));