Hey Guys,
I am having trouble using ArticleDeleteComplete Hook. I wish to get the content of the deleted revision.
So I called $article->getContent(), but it return me null. How can I get the content of the deleted revision ?
Cheers, Anubhav
Anubhav Agarwal| 4rth Year | Computer Science & Engineering | IIT Roorkee
On Tue, 10 Sep 2013 10:24:52 +0200, anubhav agarwal anubhav914@gmail.com wrote:
I am having trouble using ArticleDeleteComplete Hook. I wish to get the content of the deleted revision.
So I called $article->getContent(), but it return me null. How can I get the content of the deleted revision ?
That hook is fired after the article is deleted, so its contents are no longer available. Try using the ArticleDelete hook instead, which is fired before the actual deletion.
wikitech-l@lists.wikimedia.org