Anwiki CMS

Anwiki CMS : the first wiki/CMS dedicated to multilingual contents
| Tasklist |

FS#126 - hook_page_onchange doesn't always get the new page state

Attached to Project: Anwiki CMS
Opened by Wladimir Palant (trev) - Tuesday, 14 September 2010, 14:13 GMT
Task Type Bug Report
Category Core
Status Unconfirmed
Assigned To No-one
Operating System All
Severity Low
Priority Normal
Reported Version Anwiki 0.2.2
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No

Details

So far I noticed two inconsistencies when processing page changes in a plugin:

1. When being called for page deletion $oPage->exists() still returns true.
2. When being called for page rename $oPage->getContent()->toXmlString() for some reason returns an older version of the page content.
This task depends upon

Comment by Wladimir Palant (trev) - Tuesday, 14 September 2010, 14:24 GMT
To number 2 - it doesn't return an old version, it is simply not initialized ("<head><anwv/></head><body><anwv/></body><title><anwv/></title>" for content class page). Same happens with language changes as well.

Loading...