By webmasterfegmn on Wednesday, 28 July 2021
Replies 3
Likes 0
Views 701
Votes 0
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
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,)
·
Wednesday, 28 July 2021 13:28
·
0 Likes
·
0 Votes
·
0 Comments
·
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 11:17
·
0 Likes
·
0 Votes
·
0 Comments
·
geraint tonyp Submitted PR 522.
·
Thursday, 29 July 2021 12:14
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post