From a33d2bea1507a0b2444c5fed8dc6b809e96c0b05 Mon Sep 17 00:00:00 2001 From: Megan Watson Date: Fri, 27 Nov 2009 09:50:05 +0200 Subject: [PATCH] Removed extra unzip code which wasn't working and returning false. PT: 1821487 Jira: KTC-867 --- search2/indexing/extractors/OpenXmlTextExtractor.inc.php | 4 ++++ 1 file changed, 4 insertions(+), 0 deletions(-) diff --git a/search2/indexing/extractors/OpenXmlTextExtractor.inc.php b/search2/indexing/extractors/OpenXmlTextExtractor.inc.php index 609889d..773d3be 100644 --- a/search2/indexing/extractors/OpenXmlTextExtractor.inc.php +++ b/search2/indexing/extractors/OpenXmlTextExtractor.inc.php @@ -219,6 +219,9 @@ class OpenXmlTextExtractor extends ExternalDocumentExtractor } $filename = str_replace('\\','/',$filename); + /* + // Removing the unzip command as the whole document gets unzipped at the start + $cmd = '"' .$this->unzip . '"' . ' ' . str_replace( array('{source}','{part}', '{target_dir}'), array($this->sourcefile, $filename,$this->openxml_dir), $this->unzip_params); @@ -228,6 +231,7 @@ class OpenXmlTextExtractor extends ExternalDocumentExtractor $this->output = _kt('Failed to execute command: ') . $cmd; return false; } + */ $filename = $this->openxml_dir . "/$filename"; if (!file_exists($filename)) -- libgit2 0.21.4