@@ -1769,6 +1769,7 @@ function lti_get_tool_table($tools, $id) {
17691769
17701770 $ updateurl = clone ($ baseurl );
17711771 $ updateurl ->param ('action ' , 'update ' );
1772+ $ updateurl ->remove_params ('sesskey ' );
17721773 $ updatehtml = $ OUTPUT ->action_icon ($ updateurl ,
17731774 new \pix_icon ('t/edit ' , $ update , '' , array ('class ' => 'iconsmall ' )), null ,
17741775 array ('title ' => $ update , 'class ' => 'editing_update ' ));
@@ -1871,6 +1872,7 @@ function lti_get_tool_proxy_table($toolproxies, $id) {
18711872
18721873 $ updateurl = clone ($ baseurl );
18731874 $ updateurl ->param ('action ' , 'update ' );
1875+ $ updateurl ->remove_params ('sesskey ' );
18741876 $ updatehtml = $ OUTPUT ->action_icon ($ updateurl ,
18751877 new \pix_icon ('t/edit ' , $ update , '' , array ('class ' => 'iconsmall ' )), null ,
18761878 array ('title ' => $ update , 'class ' => 'editing_update ' ));
@@ -4073,8 +4075,11 @@ function get_tool_type_icon_url(stdClass $type) {
40734075 * @return string The url to edit the tool type
40744076 */
40754077function get_tool_type_edit_url (stdClass $ type ) {
4076- $ url = new moodle_url ('/mod/lti/typessettings.php ' ,
4077- array ('action ' => 'update ' , 'id ' => $ type ->id , 'sesskey ' => sesskey (), 'returnto ' => 'toolconfigure ' ));
4078+ $ url = new moodle_url ('/mod/lti/typessettings.php ' , [
4079+ 'action ' => 'update ' ,
4080+ 'id ' => $ type ->id ,
4081+ 'returnto ' => 'toolconfigure ' ,
4082+ ]);
40784083 return $ url ->out ();
40794084}
40804085
@@ -4086,8 +4091,11 @@ function get_tool_type_edit_url(stdClass $type) {
40864091 * @return string The url to edit the tool type
40874092 */
40884093function get_tool_proxy_edit_url (stdClass $ proxy ) {
4089- $ url = new moodle_url ('/mod/lti/registersettings.php ' ,
4090- array ('action ' => 'update ' , 'id ' => $ proxy ->id , 'sesskey ' => sesskey (), 'returnto ' => 'toolconfigure ' ));
4094+ $ url = new moodle_url ('/mod/lti/registersettings.php ' , [
4095+ 'action ' => 'update ' ,
4096+ 'id ' => $ proxy ->id ,
4097+ 'returnto ' => 'toolconfigure ' ,
4098+ ]);
40914099 return $ url ->out ();
40924100}
40934101
0 commit comments