@@ -66,8 +66,8 @@ function pdfannotator_display_embed($pdfannotator, $cm, $course, $file, $page =
6666 // Load and execute the javascript files.
6767 $ PAGE ->requires ->js (new moodle_url ("/mod/pdfannotator/shared/pdf.js?ver=00002 " ));
6868 $ PAGE ->requires ->js (new moodle_url ("/mod/pdfannotator/shared/textclipper.js " ));
69- $ PAGE ->requires ->js (new moodle_url ("/mod/pdfannotator/shared/index.js?ver=00039 " ));
70- $ PAGE ->requires ->js (new moodle_url ("/mod/pdfannotator/shared/locallib.js?ver=00006 " ));
69+ $ PAGE ->requires ->js (new moodle_url ("/mod/pdfannotator/shared/index.js?ver=00046 " ));
70+ $ PAGE ->requires ->js (new moodle_url ("/mod/pdfannotator/shared/locallib.js?ver=00007 " ));
7171
7272 // Pass parameters from PHP to JavaScript.
7373
@@ -328,7 +328,7 @@ function pdfannotator_data_preprocessing($context, $textarea, $draftitemid = 0)
328328 * Same function as core, however we need to add files into the existing draft area!
329329 * Copied from hsuforum.
330330 */
331- function pdfannotator_file_prepare_draft_area (&$ draftitemid , $ contextid , $ component , $ filearea , $ itemid , array $ options =null , $ text =null ) {
331+ function pdfannotator_file_prepare_draft_area (&$ draftitemid , $ contextid , $ component , $ filearea , $ itemid , ? array $ options =null , ? string $ text =null ) {
332332 global $ CFG , $ USER , $ CFG , $ DB ;
333333
334334 $ options = (array )$ options ;
@@ -869,7 +869,7 @@ function pdfannotator_set_mainfile($data) {
869869 }
870870}
871871
872- function pdfannotator_render_listitem_actions (array $ actions = null ) {
872+ function pdfannotator_render_listitem_actions (? array $ actions = null ) {
873873 $ menu = new action_menu ();
874874 $ menu ->attributes ['class ' ] .= ' course-item-actions item-actions ' ;
875875 $ hasitems = false ;
@@ -985,7 +985,7 @@ function pdfannotator_prepare_overviewpage($cmid, $myrenderer, $taburl, $action,
985985 $ PAGE ->requires ->strings_for_js (array_keys ($ strings ), 'pdfannotator ' ); // Method to use the language-strings in javascript.
986986 // 1.3 Add the javascript file that determines the dynamic behaviour of the page.
987987 $ PAGE ->requires ->js (new moodle_url ("/mod/pdfannotator/shared/locallib.js?ver=00002 " ));
988- $ PAGE ->requires ->js (new moodle_url ("/mod/pdfannotator/shared/overview.js?ver=00002 " ));
988+ $ PAGE ->requires ->js (new moodle_url ("/mod/pdfannotator/shared/overview.js?ver=00003 " ));
989989
990990 // 1.4 Check user capabilities to view the different categories.
991991 // The argument 'false' disregards administrator's magical 'doanything' power.
0 commit comments