Commit d0a61bb177763900a101cae4f8129a924a126104
1 parent
743250eb
Don't even try to run xls2csv on Windows.
git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@5471 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
5 additions
and
3 deletions
plugins/ktstandard/contents/ExcelIndexer.php
| ... | ... | @@ -42,9 +42,11 @@ class KTExcelIndexerTrigger extends KTBaseIndexerTrigger { |
| 42 | 42 | // see BaseIndexer for how the extraction works. |
| 43 | 43 | // |
| 44 | 44 | function extract_contents($sFilename, $sTempFilename) { |
| 45 | - $res = parent::extract_contents($sFilename, $sTempFilename); | |
| 46 | - if (!empty($res)) { | |
| 47 | - return $res; | |
| 45 | + if (!OS_WINDOWS) { | |
| 46 | + $res = parent::extract_contents($sFilename, $sTempFilename); | |
| 47 | + if (!empty($res)) { | |
| 48 | + return $res; | |
| 49 | + } | |
| 48 | 50 | } |
| 49 | 51 | |
| 50 | 52 | return $this->_fallbackExcelReader($sFilename, $sTempFilename); | ... | ... |