Browse Source

Minor - Improve PPT uploading form to avoid loosing context on failure

Yannick Warnier 8 years ago
parent
commit
c12374b0c8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      main/upload/upload_ppt.php

+ 1 - 1
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));