[Mediawiki-l] wpEdittime wpStartTime

a@kid a at kid632.org
Fri Jun 16 21:27:09 UTC 2006


Thanks Rob.

I've dug through EditPage.php - and that's where i first found out  
that wpEdittime was used to determine edit conflicts. I haven't been  
able to find EditForm.php - did you mean EditPage.php?

I'm trying to pull off a quick and dirty hack that displays a  
persistent 'add comment' form at the bottom of talk pages. I've  
created a simple form with only a 'preview' button. This way i  
haven't had to worry about the complexities of submitting an article.  
My form just sends the data to the standard mediaWiki preview screen.  
Before 1.6 i didn't need to include wpEdittime in my form. Now in 1.6  
i need it or i get an edit conflict.

So i added an extra hidden field to my html form:

input type="hidden" value="" name="wpEdittime"

and I tried using $wgArticle->mTouched as the value, and it seemed to  
work fine. It allowed me to submit without any edit conflicts. If  
this is not the right variable to use for this value, is there  
another i should be using?

Any help is greatly appreciated.




More information about the MediaWiki-l mailing list