From: <ru...@us...> - 2010-11-11 14:45:25
|
Revision: 7740 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=7740&view=rev Author: rurban Date: 2010-11-11 14:45:18 +0000 (Thu, 11 Nov 2010) Log Message: ----------- fix wrong explodePageList logic with *,*: union not intersection Modified Paths: -------------- trunk/lib/PageList.php Modified: trunk/lib/PageList.php =================================================================== --- trunk/lib/PageList.php 2010-11-10 16:51:32 UTC (rev 7739) +++ trunk/lib/PageList.php 2010-11-11 14:45:18 UTC (rev 7740) @@ -1040,7 +1040,7 @@ // expand wildcards from list of all pages if (preg_match('/[\?\*]/', $input) or substr($input,0,1) == "^") { include_once("lib/TextSearchQuery.php"); - $search = new TextSearchQuery(str_replace(",", " ", $input), true, + $search = new TextSearchQuery(str_replace(",", " or ", $input), true, (substr($input,0,1) == "^") ? 'posix' : 'glob'); $dbi = $GLOBALS['request']->getDbh(); $iter = $dbi->titleSearch($search, $sortby, $limit, $exclude); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |