Wednesday, 28 July 2021
  3 Replies
  721 Visits
0
Votes
Undo
Between the calender and the legend there is a deprecated info:
Deprecated: Required parameter $modid follows optional parameter $params in \modules\mod_jevents_legend\tmpl\default\legend.php on line 31
Wednesday, 28 July 2021 13:28
·
#222678
0
Votes
Undo
I think you can just change that line so the optional parameter is after the $modid and it should be happy

mod_jevents_legend\tmpl\default\legend.php on line 31

function __construct($modid, &$params=null,)
Thursday, 29 July 2021 11:17
·
#222686
0
Votes
Undo
That is not going to work as the call parameter order is set by the function creating the class. You can safely change it to:


function __construct(&$params, $modid)

i.e. remove the =null
Thursday, 29 July 2021 12:14
·
#222692
0
Votes
Undo
geraint tonyp Submitted PR 522.
  • Page :
  • 1
There are no replies made for this post yet.