https://bugzilla.wikimedia.org/show_bug.cgi?id=6315

[email protected] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #5 from [email protected] ---
I've got this working for pages by passing the current revision id in the
deletion form generated by Article::confirmDelete, and then checking to see if
the current revision id has changed in Article::delete prior to calling
Article::doDelete for deletion, emitting a warning if necessary and prompting
for reconfirmation by calling Article::confirmDelete again with the new
revision id. This will add a new message, do I just add it to Messagesen.php?

However, the initial bug report involved the deletion of files and I am having
trouble implementing the warnings for files. The deletion form is generated by
FileDeleteForm via ImagePage. I can't determine how to get the revision id for
the page associated with a file and add it to the form in
FileDeleteForm::showForm and then get the current revision id again in
FileDeleteForm::execute to compare. ImagePage has a mPage attribute but it is
an instance of WikiFilePage that doesn't have any methods for getting the
revision id.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to