Commit 38a276a1010582467086924d0401cca9b3112b41
1 parent
9da40191
don't show errors on Windows - they mislead people into thinking their
installations are faulty or incomplete. git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@5337 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
2 changed files
with
5 additions
and
1 deletions
plugins/ktstandard/contents/PsIndexer.php
| @@ -45,6 +45,10 @@ class KTPostscriptIndexerTrigger extends KTBaseIndexerTrigger { | @@ -45,6 +45,10 @@ class KTPostscriptIndexerTrigger extends KTBaseIndexerTrigger { | ||
| 45 | function getDiagnostic() { | 45 | function getDiagnostic() { |
| 46 | $sCommand = $this->findLocalCommand(); | 46 | $sCommand = $this->findLocalCommand(); |
| 47 | 47 | ||
| 48 | + if (OS_WINDOWS) { | ||
| 49 | + return null; // _kt("The PS indexer does not currently index PS documents on Windows."); | ||
| 50 | + } | ||
| 51 | + | ||
| 48 | // can't find the local command. | 52 | // can't find the local command. |
| 49 | if (empty($sCommand)) { | 53 | if (empty($sCommand)) { |
| 50 | return sprintf(_kt('Unable to find required command for indexing. Please ensure that <strong>%s</strong> is installed and in the KnowledgeTree Path. For more information on indexers and helper applications, please <a href="%s">visit the KTDMS site</a>.'), $this->command, $this->support_url); | 54 | return sprintf(_kt('Unable to find required command for indexing. Please ensure that <strong>%s</strong> is installed and in the KnowledgeTree Path. For more information on indexers and helper applications, please <a href="%s">visit the KTDMS site</a>.'), $this->command, $this->support_url); |
plugins/ktstandard/contents/RtfIndexer.php
| @@ -44,7 +44,7 @@ class KTRtfIndexerTrigger extends KTBaseIndexerTrigger { | @@ -44,7 +44,7 @@ class KTRtfIndexerTrigger extends KTBaseIndexerTrigger { | ||
| 44 | 44 | ||
| 45 | function getDiagnostic() { | 45 | function getDiagnostic() { |
| 46 | if (OS_WINDOWS) { | 46 | if (OS_WINDOWS) { |
| 47 | - return _kt("The RTF indexer does not currently index RTF documents on Windows."); | 47 | + return null; // _kt("The RTF indexer does not currently index RTF documents on Windows."); |
| 48 | } | 48 | } |
| 49 | $sCommand = $this->findLocalCommand(); | 49 | $sCommand = $this->findLocalCommand(); |
| 50 | 50 |