From: Joel U. <uck...@us...> - 2001-06-26 18:15:31
|
Update of /cvsroot/phpwiki/phpwiki/admin In directory usw-pr-cvs1:/tmp/cvs-serv9761 Modified Files: lockpage.php Log Message: Changed call to InsertPage to ReplaceCurrentPage. Added $version to RetrievePage call. Index: lockpage.php =================================================================== RCS file: /cvsroot/phpwiki/phpwiki/admin/lockpage.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -r1.3 -r1.4 *** lockpage.php 2001/02/13 05:54:38 1.3 --- lockpage.php 2001/06/26 18:15:28 1.4 *************** *** 4,8 **** $user->must_be_admin("lock or unlock pages"); ! $pagehash = RetrievePage($dbi, $pagename, $WikiPageStore); if (! is_array($pagehash)) --- 4,8 ---- $user->must_be_admin("lock or unlock pages"); ! $pagehash = RetrievePage($dbi, $pagename, $WikiPageStore, 0); if (! is_array($pagehash)) *************** *** 14,17 **** $pagehash['flags'] &= ~FLAG_PAGE_LOCKED; ! InsertPage($dbi, $pagename, $pagehash); ?> --- 14,17 ---- $pagehash['flags'] &= ~FLAG_PAGE_LOCKED; ! ReplaceCurrentPage($pagename, $pagehash); ?> |