mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-06 07:04:57 +00:00
fix line indenting
This commit is contained in:
parent
e4533f3488
commit
1592c794b0
|
@ -85,16 +85,15 @@ function tree($dms, $index, $indexconf, $folder, $indent='') { /* {{{ */
|
||||||
$lucenesearch = new $indexconf['Search']($index);
|
$lucenesearch = new $indexconf['Search']($index);
|
||||||
if(!($hit = $lucenesearch->getDocument($document->getId()))) {
|
if(!($hit = $lucenesearch->getDocument($document->getId()))) {
|
||||||
try {
|
try {
|
||||||
# $index->addDocument(new $indexconf['IndexedDocument']($dms, $document, isset($settings->_converters['fulltext']) ? $settings->_converters['fulltext'] : null, false, $settings->_cmdTimeout));
|
|
||||||
$idoc = new $indexconf['IndexedDocument']($dms, $document, isset($settings->_converters['fulltext']) ? $settings->_converters['fulltext'] : null, false, $settings->_cmdTimeout);
|
$idoc = new $indexconf['IndexedDocument']($dms, $document, isset($settings->_converters['fulltext']) ? $settings->_converters['fulltext'] : null, false, $settings->_cmdTimeout);
|
||||||
if(isset($GLOBALS['SEEDDMS_HOOKS']['indexDocument'])) {
|
if(isset($GLOBALS['SEEDDMS_HOOKS']['indexDocument'])) {
|
||||||
foreach($GLOBALS['SEEDDMS_HOOKS']['indexDocument'] as $hookObj) {
|
foreach($GLOBALS['SEEDDMS_HOOKS']['indexDocument'] as $hookObj) {
|
||||||
if (method_exists($hookObj, 'preIndexDocument')) {
|
if (method_exists($hookObj, 'preIndexDocument')) {
|
||||||
$hookObj->preIndexDocument(null, $document, $idoc);
|
$hookObj->preIndexDocument(null, $document, $idoc);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$index->addDocument($idoc);
|
$index->addDocument($idoc);
|
||||||
echo " (Document added)\n";
|
echo " (Document added)\n";
|
||||||
} catch(Exception $e) {
|
} catch(Exception $e) {
|
||||||
echo " (Timeout)\n";
|
echo " (Timeout)\n";
|
||||||
|
@ -111,17 +110,15 @@ function tree($dms, $index, $indexconf, $folder, $indent='') { /* {{{ */
|
||||||
} else {
|
} else {
|
||||||
$index->delete($hit->id);
|
$index->delete($hit->id);
|
||||||
try {
|
try {
|
||||||
# $index->addDocument(new $indexconf['IndexedDocument']($dms, $document, isset($settings->_converters['fulltext']) ? $settings->_converters['fulltext'] : null, false, $settings->_cmdTimeout));
|
$idoc = new $indexconf['IndexedDocument']($dms, $document, isset($settings->_converters['fulltext']) ? $settings->_converters['fulltext'] : null, false, $settings->_cmdTimeout);
|
||||||
$idoc = new $indexconf['IndexedDocument']($dms, $document, isset($settings->_converters['fulltext']) ? $settings->_converters['fulltext'] : null, false, $settings->_cmdTimeout);
|
if(isset($GLOBALS['SEEDDMS_HOOKS']['indexDocument'])) {
|
||||||
if(isset($GLOBALS['SEEDDMS_HOOKS']['indexDocument'])) {
|
foreach($GLOBALS['SEEDDMS_HOOKS']['indexDocument'] as $hookObj) {
|
||||||
foreach($GLOBALS['SEEDDMS_HOOKS']['indexDocument'] as $hookObj) {
|
if (method_exists($hookObj, 'preIndexDocument')) {
|
||||||
if (method_exists($hookObj, 'preIndexDocument')) {
|
$hookObj->preIndexDocument(null, $document, $idoc);
|
||||||
$hookObj->preIndexDocument(null, $document, $idoc);
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
$index->addDocument($idoc);
|
||||||
$index->addDocument($idoc);
|
|
||||||
|
|
||||||
echo " (Document updated)\n";
|
echo " (Document updated)\n";
|
||||||
} catch(Exception $e) {
|
} catch(Exception $e) {
|
||||||
echo " (Timeout)\n";
|
echo " (Timeout)\n";
|
||||||
|
|
Loading…
Reference in New Issue
Block a user