Skip to content

Commit

Permalink
Update classes/class.rexsearch.inc.php
Browse files Browse the repository at this point in the history
Removed var $htdocsPath.
"/redaxo/include/generated/files" is now used for temporary files.
  • Loading branch information
xong committed Sep 28, 2012
1 parent 53cc1cf commit e9a756e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions classes/class.rexsearch.inc.php
Expand Up @@ -56,7 +56,6 @@ class RexSearch
var $groupBy = true;
var $hashMe = '';
var $highlightType = 'surroundtext';
var $htdocsPath;
var $includeColumns = array();
var $includeDirectories = array();
var $includePath;
Expand Down Expand Up @@ -181,7 +180,6 @@ function RexSearch($_clang = false, $_loadSettings = true, $_useStopwords = true
$this->languages = $REX['CLANG'];
$this->tablePrefix = $REX['TABLE_PREFIX'];
$this->includePath = $REX['INCLUDE_PATH'];
$this->htdocsPath = realpath($REX['INCLUDE_PATH'].'../../../');
$this->utf8 = rex_lang_is_utf8();
$this->documentRoot = realpath($_SERVER['DOCUMENT_ROOT']);
$this->mediaFolder = $REX['MEDIAFOLDER'];
Expand Down Expand Up @@ -942,7 +940,7 @@ function indexFile($_filename, $_doPlaintext = false, $_clang = false, $_fid = f

if(function_exists('exec'))
{
$tempFile = tempnam($this->htdocsPath.'/files/', 'rexsearch');
$tempFile = tempnam($this->includePath.'/generated/files/', 'rexsearch');

if($this->utf8)
$encoding = 'UTF-8';
Expand Down

0 comments on commit e9a756e

Please sign in to comment.