From 38a276a1010582467086924d0401cca9b3112b41 Mon Sep 17 00:00:00 2001 From: bshuttle Date: Tue, 25 Apr 2006 12:51:49 +0000 Subject: [PATCH] don't show errors on Windows - they mislead people into thinking their installations are faulty or incomplete. --- plugins/ktstandard/contents/PsIndexer.php | 4 ++++ plugins/ktstandard/contents/RtfIndexer.php | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/plugins/ktstandard/contents/PsIndexer.php b/plugins/ktstandard/contents/PsIndexer.php index 074fd98..bca4f06 100644 --- a/plugins/ktstandard/contents/PsIndexer.php +++ b/plugins/ktstandard/contents/PsIndexer.php @@ -45,6 +45,10 @@ class KTPostscriptIndexerTrigger extends KTBaseIndexerTrigger { function getDiagnostic() { $sCommand = $this->findLocalCommand(); + if (OS_WINDOWS) { + return null; // _kt("The PS indexer does not currently index PS documents on Windows."); + } + // can't find the local command. if (empty($sCommand)) { return sprintf(_kt('Unable to find required command for indexing. Please ensure that %s is installed and in the KnowledgeTree Path. For more information on indexers and helper applications, please visit the KTDMS site.'), $this->command, $this->support_url); diff --git a/plugins/ktstandard/contents/RtfIndexer.php b/plugins/ktstandard/contents/RtfIndexer.php index e7faff4..65d16c2 100644 --- a/plugins/ktstandard/contents/RtfIndexer.php +++ b/plugins/ktstandard/contents/RtfIndexer.php @@ -44,7 +44,7 @@ class KTRtfIndexerTrigger extends KTBaseIndexerTrigger { function getDiagnostic() { if (OS_WINDOWS) { - return _kt("The RTF indexer does not currently index RTF documents on Windows."); + return null; // _kt("The RTF indexer does not currently index RTF documents on Windows."); } $sCommand = $this->findLocalCommand(); -- libgit2 0.21.4