[pmwiki-users] Keeping history when updating pages via php
    Wordit Ltd 
    wordituk at googlemail.com
       
    Sun Aug  1 12:42:38 CDT 2010
    
    
  
How do you keep the full page history when using UpdatePage($pn, $old,
$page) from PHP?
I tried the following, reading the current page values into $old. But
there are no diffs added to the page source in wiki.d (and rev=1).
It's just overwriting, as though the page had not existed. Do I have
to call another function to get history added?
$page['text'] = 'the new text';
$pn = 'MyGroup.MyPage';
$old = ReadPage($pn);
UpdatePage($pn, $old, $page);
Many Thanks,
Marcus
    
    
More information about the pmwiki-users
mailing list