Wednesday, 28 July 2021
  3 Replies
  629 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
3 years ago
·
#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,)
3 years ago
·
#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
3 years ago
·
#222692
0
Votes
Undo
geraint tonyp Submitted PR 522.
  • Page :
  • 1
There are no replies made for this post yet.