diff --git a/inc/inc.Utils.php b/inc/inc.Utils.php
index bbd9dcbe9..a9f9dfc22 100644
--- a/inc/inc.Utils.php
+++ b/inc/inc.Utils.php
@@ -26,13 +26,13 @@ function formatted_size($size_bytes) { /* {{{ */
return number_format($size_bytes,0,"","")." Bytes";
} /* }}} */
-function getReadableDate($timestamp) {
+function getReadableDate($timestamp) { /* {{{ */
return date("Y-m-d", $timestamp);
-}
+} /* }}} */
-function getLongReadableDate($timestamp) {
+function getLongReadableDate($timestamp) { /* {{{ */
return date("Y-m-d H:i:s", $timestamp);
-}
+} /* }}} */
/*
* Converts a date/time string into a timestamp
@@ -52,16 +52,16 @@ function makeTsFromLongDate($date) { /* {{{ */
return $ts;
} /* }}} */
-function getReadableDuration($secs) {
+function getReadableDuration($secs) { /* {{{ */
$s = "";
foreach ( getReadableDurationArray($secs) as $k => $v ) {
if ( $v ) $s .= $v." ".($v==1? substr($k,0,-1) : $k).", ";
}
return substr($s, 0, -2);
-}
+} /* }}} */
-function getReadableDurationArray($secs) {
+function getReadableDurationArray($secs) { /* {{{ */
$units = array(
getMLText("weeks") => 7*24*3600,
getMLText("days") => 24*3600,
@@ -77,7 +77,7 @@ function getReadableDurationArray($secs) {
}
return $units;
-}
+} /* }}} */
/**
* Compare two version
diff --git a/utils/indexer.php b/utils/indexer.php
index d8170469a..5b7fc36cf 100644
--- a/utils/indexer.php
+++ b/utils/indexer.php
@@ -83,7 +83,7 @@ function tree($dms, $index, $indexconf, $folder, $indent='') { /* {{{ */
$lucenesearch = new $indexconf['Search']($index);
if(!($hit = $lucenesearch->getDocument($document->getId()))) {
try {
- $index->addDocument(new $indexconf['IndexedDocument']($dms, $document, isset($settings->_converters['fulltext']) ? $settings->_converters['fulltext'] : null, false));
+ $index->addDocument(new $indexconf['IndexedDocument']($dms, $document, isset($settings->_converters['fulltext']) ? $settings->_converters['fulltext'] : null, false, $settings->_cmdTimeout));
echo " (Document added)\n";
} catch(Exception $e) {
echo " (Timeout)\n";
@@ -100,7 +100,7 @@ function tree($dms, $index, $indexconf, $folder, $indent='') { /* {{{ */
} else {
if($index->delete($hit->id)) {
try {
- $index->addDocument(new $indexconf['IndexedDocument']($dms, $document, isset($settings->_converters['fulltext']) ? $settings->_converters['fulltext'] : null, false));
+ $index->addDocument(new $indexconf['IndexedDocument']($dms, $document, isset($settings->_converters['fulltext']) ? $settings->_converters['fulltext'] : null, false, $settings->_cmdTimeout));
echo " (Document updated)\n";
} catch(Exception $e) {
echo " (Timeout)\n";
diff --git a/views/bootstrap/class.Bootstrap.php b/views/bootstrap/class.Bootstrap.php
index 08ee4fa46..53c63e906 100644
--- a/views/bootstrap/class.Bootstrap.php
+++ b/views/bootstrap/class.Bootstrap.php
@@ -1215,6 +1215,7 @@ $('#acceptkeywords').click(function(ev) {
echo "getId()."]\" value=\"1\" ".(($attribute && $attribute->getValue()) ? 'checked' : '')." />";
break;
case SeedDMS_Core_AttributeDefinition::type_date:
+ $objvalue = $attribute ? (is_object($attribute) ? $attribute->getValue() : $attribute) : '';
?>
">