Browse Source

Update 'ilm_manager.php'

V. 2.7.1: added parameter 'iLM_PARAM_Authoring=true&' to indicate is teacher accessing (authoring process)
leo 3 years ago
parent
commit
051f735b07
1 changed files with 7 additions and 8 deletions
  1. 7 8
      ilm_manager.php

+ 7 - 8
ilm_manager.php

@@ -4,14 +4,15 @@
  * iLM manager
  * 
  * Release Notes
+ * - v 2.7.1 2020/08/03
+ *   + added parameter 'iLM_PARAM_Authoring=true&' to indicate is teacher accessing (authoring process)
  * - v 2.7 2017/03/10
  *   + added the first parameter in call 'locallib.php : view_files_ilm($iassign_ilm, $iassign_ilm->extension)'
- * locallib.php : function view_files_ilm($iassign_ilm, $extension) 6184/6732
- *  $link_filter = "&nbsp;&nbsp;<a href='#' onclick='preview_ilm(" . $fileid . "," . $ilmid . ");'>"... 6441/6734
- *  $link_filter = "&nbsp;&nbsp;<a href='#' onclick='preview_ilm(" . $fileid . "," . $ilmid . ");'>"... 6447/6734
- * 
+ *      locallib.php : function view_files_ilm($iassign_ilm, $extension) 6184/6732
+ *      $link_filter = "&nbsp;&nbsp;<a href='#' onclick='preview_ilm(" . $fileid . "," . $ilmid . ");'>"... 6441/6734
+ *      $link_filter = "&nbsp;&nbsp;<a href='#' onclick='preview_ilm(" . $fileid . "," . $ilmid . ");'>"... 6447/6734
  * - v 2.6 2016/05/12
- *   + the 'utils' class was changed to "iassign utils" 
+ *   + added "iLM_PARAM_Authoring=true&" to the URL 
  * - v 2.5 2016/02/16
  *   + In 'optional_param(...)', some 'PARAM_ALPHANUMEXT' changed by 'PARAM_TEXT'
  *   + Fixed bug, now allow to rename iLM files
@@ -113,9 +114,7 @@ if ($id>0) { // if reach here by iLM get request, id is not defined!
   $context = context_course::instance($id);
   }
 
-$url = $CFG->wwwroot . "/mod/iassign/ilm_manager.php?from=$from&id=$id&ilmid=$ilmid";
-// http://localhost/moodle321p/mod/iassign/ilm_manager.php?id=2&from=iassign&ilmid=7#
-// -> http://localhost/moodle321p/mod/iassign/ilm_manager.php?from=iassign&id=2&action=preview&fileid=53
+$url = $CFG->wwwroot . "/mod/iassign/ilm_manager.php?iLM_PARAM_Authoring=true&from=$from&id=$id&ilmid=$ilmid";
 //xx $course = $DB->get_record('course', array('id' => $id), '*', MUST_EXIST); //QUARANTINE it is not necessary to present the course in the header...
 $iassign_ilm = $DB->get_record('iassign_ilm', array('id' => $ilmid));