From: Sverre B. <sv...@us...> - 2005-10-10 13:11:41
|
Update of /cvsroot/archive-access/archive-access/projects/wera/src/webapps/wera In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12882 Modified Files: documentDispatcher.php Log Message: Fixed bug 1322594 Index: documentDispatcher.php =================================================================== RCS file: /cvsroot/archive-access/archive-access/projects/wera/src/webapps/wera/documentDispatcher.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** documentDispatcher.php 5 Oct 2005 22:42:47 -0000 1.4 --- documentDispatcher.php 10 Oct 2005 13:11:37 -0000 1.5 *************** *** 143,147 **** $searchEngine = new $conf_index_class(); $locator = new documentLocator(); ! $locator->initialize($searchEngine, $url, false, $timestamp, 'NEAR'); $numhits = $locator->findVersions(); if($numhits <= 0) { // No document found --- 143,154 ---- $searchEngine = new $conf_index_class(); $locator = new documentLocator(); ! if ($timestamp != "") { ! $doclocmode = 'NEAR'; ! } ! else { // if no time given show the latest version ! $doclocmode = 'LAST'; ! } ! ! $locator->initialize($searchEngine, $url, false, $timestamp, $doclocmode); $numhits = $locator->findVersions(); if($numhits <= 0) { // No document found |