Commit 1a36da414fe31f0378bafd57f75e693c1d8089dd
1 parent
39b1e33e
KTS-2584
"Postscrip extractor is disabled on linux" Fixed. Committed By: Conrad Vermeulen Reviewed By: Kevin Fourie git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@7570 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
3 additions
and
1 deletions
search2/indexing/indexerCore.inc.php
| @@ -692,7 +692,9 @@ abstract class Indexer | @@ -692,7 +692,9 @@ abstract class Indexer | ||
| 692 | OS_UNIX => array() | 692 | OS_UNIX => array() |
| 693 | ); | 693 | ); |
| 694 | 694 | ||
| 695 | - foreach($disable[OS_WINDOWS] as $extractor) | 695 | + $disableForOS = OS_WINDOWS?$disable[OS_WINDOWS]:$disable[OS_UNIX]; |
| 696 | + | ||
| 697 | + foreach($disableForOS as $extractor) | ||
| 696 | { | 698 | { |
| 697 | $sql = "UPDATE mime_extractors SET active=0 WHERE name='$extractor'"; | 699 | $sql = "UPDATE mime_extractors SET active=0 WHERE name='$extractor'"; |
| 698 | DBUtil::runQuery($sql); | 700 | DBUtil::runQuery($sql); |