Jump to content

Extension talk:Dice/Flow

About this board

Leucosticte (talkcontribs)

To get it to work, I had to go into mysql and make dice_rolls.roll_rev nullable. Thanks for sharing this extension, by the way!

Coren (talkcontribs)

(Zombie thread!!1!) Ah, thanks for this. Do you have a patch to the mysql database setup? My own setup here allows me to test postgresql and Oracle only.

Reply to "Not null"

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"
75.72.16.129 (talkcontribs)

cant seem to make it work

i type @@4d6 but it just prints that as is, not the dicethrow

Reply to "doesnt work for me"
There are no older topics