Commit dc143488f3168481a47472e70f87c10e51421f96
1 parent
625d68be
KTS-3187
"Problem with opendir() in windows under indexerCore" Fixed. Committed By: Conrad Vermeulen Reviewed By: Martin Kirsten git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@8291 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
2 changed files
with
5 additions
and
0 deletions
search2/indexing/indexerCore.inc.php
| ... | ... | @@ -612,6 +612,7 @@ abstract class Indexer |
| 612 | 612 | $this->generalHookCache = array(); |
| 613 | 613 | $this->mimeHookCache = array(); |
| 614 | 614 | |
| 615 | + $this->hookPath = str_replace('\\','/', $this->hookPath); | |
| 615 | 616 | $dir = opendir($this->hookPath); |
| 616 | 617 | while (($file = readdir($dir)) !== false) |
| 617 | 618 | { |
| ... | ... | @@ -1372,6 +1373,8 @@ abstract class Indexer |
| 1372 | 1373 | global $default; |
| 1373 | 1374 | |
| 1374 | 1375 | $diagnoses = array(); |
| 1376 | + | |
| 1377 | + $path = str_replace('\\','/', $path); | |
| 1375 | 1378 | $dir = opendir($path); |
| 1376 | 1379 | $extlen = - strlen($extension); |
| 1377 | 1380 | |
| ... | ... | @@ -1444,6 +1447,7 @@ abstract class Indexer |
| 1444 | 1447 | { |
| 1445 | 1448 | $this->clearExtractors(); |
| 1446 | 1449 | } |
| 1450 | + $this->extractorPath = str_replace('\\','/', $this->extractorPath); | |
| 1447 | 1451 | $dir = opendir($this->extractorPath); |
| 1448 | 1452 | while (($file = readdir($dir)) !== false) |
| 1449 | 1453 | { | ... | ... |
search2/search/fieldRegistry.inc.php