Permalink
Browse files

Replace wrapperCalssName by getRealFile()

  • Loading branch information...
1 parent 35a2c19 commit 0cafd465a859bffb4ee78c18d12cd710be17acc3 @cdujeu cdujeu committed Sep 22, 2016
Showing with 3 additions and 3 deletions.
  1. +3 −3 core/src/plugins/index.lucene/LuceneIndexer.php
@@ -606,13 +606,13 @@ public function createIndexedDocument($ajxpNode, &$index)
if ($parseContent && in_array($ext, explode(",", $this->getContextualOption($ajxpNode->getContext(), "PARSE_CONTENT_HTML")))) {
$doc = @\Zend_Search_Lucene_Document_Html::loadHTMLFile($ajxpNode->getUrl());
} elseif ($parseContent && $ext == "docx" && class_exists("\Zend_Search_Lucene_Document_Docx")) {
- $realFile = call_user_func([$ajxpNode->wrapperClassName, "getRealFSReference"], $ajxpNode->getUrl());
+ $realFile = $ajxpNode->getRealFile();
$doc = @\Zend_Search_Lucene_Document_Docx::loadDocxFile($realFile);
} elseif ($parseContent && $ext == "docx" && class_exists("\Zend_Search_Lucene_Document_Pptx")) {
- $realFile = call_user_func([$ajxpNode->wrapperClassName, "getRealFSReference"], $ajxpNode->getUrl());
+ $realFile = $ajxpNode->getRealFile();
$doc = @\Zend_Search_Lucene_Document_Pptx::loadPptxFile($realFile);
} elseif ($parseContent && $ext == "xlsx" && class_exists("\Zend_Search_Lucene_Document_Xlsx")) {
- $realFile = call_user_func([$ajxpNode->wrapperClassName, "getRealFSReference"], $ajxpNode->getUrl());
+ $realFile = $ajxpNode->getRealFile();
$doc = @\Zend_Search_Lucene_Document_Xlsx::loadXlsxFile($realFile);
} else {
$doc = new \Zend_Search_Lucene_Document();

0 comments on commit 0cafd46

Please sign in to comment.