Topic on Extension talk:Dice

Necessary modifications

2
Leucosticte (talkcontribs)

In Dice_body.php, make two changes to get rid of those annoying warnings about missing argument 12 for Dice::Saved() and invalid argument supplied for foreach in Dice_body.php on line 63.

Replace this:

    var $id;

with this:

    var $id = array();

Also revise static function saved() to get rid of &$redirect. This reflects the change that was made to Manual:Hooks/ArticleSaveComplete to reduce it from 12 to 11 arguments. In other words, change it from:

static function saved(&$article, &$user, $text, $summary,
    $minoredit, $watchthis, $sectionanchor, &$flags,
    $revision, &$status, $baseRevId, &$redirect) {

to:

static function saved(&$article, &$user, $text, $summary, 
    $minoredit, $watchthis, $sectionanchor, &$flags,
    $revision, &$status, $baseRevId ) {
Coren (talkcontribs)

Will do as soon as I get a second in the next week. Thanks for the pointers.

Reply to "Necessary modifications"