From: <sy...@us...> - 2004-08-27 21:03:05
|
Update of /cvsroot/tikiwiki/tiki/lib/wiki In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29885/lib/wiki Modified Files: histlib.php Log Message: new feature: choose your diff style for wiki page change notification. a new style: unified (=cvs) (TODO: a html diff) Index: histlib.php =================================================================== RCS file: /cvsroot/tikiwiki/tiki/lib/wiki/histlib.php,v retrieving revision 1.20 retrieving revision 1.21 diff -u -d -r1.20 -r1.21 --- histlib.php 26 Aug 2004 19:24:10 -0000 1.20 +++ histlib.php 27 Aug 2004 21:02:54 -0000 1.21 @@ -130,14 +130,15 @@ return $ret; } - function get_page_latest_version($page) { + function get_page_latest_version($page, $data=null) { - $query = "select `version` from `tiki_history` where `pageName`=? order by `version` desc"; + $query = "select `version`, `data` from `tiki_history` where `pageName`=? order by `version` desc"; $result = $this->query($query,array($page),1); $ret = array(); if ($res = $result->fetchRow()) { $ret = $res['version'] + 1; + $data= $res['data']; } elseif ($this->page_exists($page)) { $ret = 1; } else { |