On 12/11/12 17:10, Javier del Pozo wrote:
Thank you Platonides. You were very clear. So, I understand that the real problem is how to get the diff (the specific diffs, not the link to diffs) from $this within EmailNotification class.
Not really a problem, but not as available as a variable holding the diff. :) You have $this->oldid, so you can perform in that new class the same steps as when visiting in the browser index.php?oldid=1234&diff=prev
Could be a good for users who want to see what changed directly in the mail notification.
Yes. A small caveat: the wiki may be configured not to send new notifications until you visit the watched page again. When you are forced to visit the link, it happens automatically (if you are logged in), but if the user treats it as "seen" from the email, the wiki doesn't know that.
Regards