NWiki for Moodle 1.6 - created date issue

NWiki for Moodle 1.6 - created date issue

by Geoffrey Rowland -
Number of replies: 1
Picture of Plugin developers
I have recently noticed a minor issue with the latest NWiki (rev 2007051801) for Moodle 1.6.x. For any newly created NWikis, in the History page, the created date is Thursday, 01 January 1970 01:00 sad (the appropriate 'created' field in the MySQL mdl_wiki_pages table remains on the default value, 0).

Our older NWikis have correct created dates, so I'm not sure whether the issue was introduced with this NWiki version or something else in our Moodle 1.6.x. Anyone else with the same issue?

I appreciate the development focus is now on NWiki for Moodle 1.9/2.0 (and I'm really pleased that NWiki is going to make the Moodle core cool), but would be grateful for any pointers.




Average of ratings: -
In reply to Geoffrey Rowland

Re: NWiki for Moodle 1.6 - created date issue

by Geoffrey Rowland -
Picture of Plugin developers
Managed to fix this for NWiki for Moodle 1.6 by the following changes in mod/wiki/locallib.php (backported from NWiki for Moodle 1.7/1.8/1.9)

around line 1470

replace

$data->created = $WS->dfform['created'];

with

$data->created = optional_param('dfformcreated',NULL,PARAM_INT);;

Not a huge issue, but may help others working with NWiki and Moodle 1.6 before the big upgrade to 1.9 wink