Feature #15162 » 1740.diff
typo3/sysext/indexed_search/ext_typoscript_setup.txt (working copy) | ||
---|---|---|
plugin.tx_indexedsearch {
|
||
templateFile = EXT:indexed_search/pi/indexed_search.tmpl
|
||
# Date formats for created/modified dates in search results. See PHP date() function. Leave blank for using system defaults
|
||
dateFormat {
|
||
created =
|
||
modified =
|
||
}
|
||
show {
|
||
rules = 1
|
||
parsetimes = 0
|
typo3/sysext/indexed_search/pi/class.tx_indexedsearch.php (working copy) | ||
---|---|---|
$dateFormat = $GLOBALS['TYPO3_CONF_VARS']['SYS']['ddmmyy'];
|
||
$timeFormat = $GLOBALS['TYPO3_CONF_VARS']['SYS']['hhmm'];
|
||
$createdFormat = $this->conf['dateFormat.']['created'] ?
|
||
$this->conf['dateFormat.']['created'] : $dateFormat;
|
||
$modifiedFormat = $this->conf['dateFormat.']['modified'] ?
|
||
$this->conf['dateFormat.']['modified'] :
|
||
$dateFormat . ' ' . $timeFormat;
|
||
$tmplArray['size'] = t3lib_div::formatSize($row['item_size']);
|
||
$tmplArray['created'] = date($dateFormat, $row['item_crdate']);
|
||
$tmplArray['modified'] = date($dateFormat.' '.$timeFormat, $row['item_mtime']);
|
||
$tmplArray['created'] = date($createdFormat, $row['item_crdate']);
|
||
$tmplArray['modified'] = date($modifiedFormat, $row['item_mtime']);
|
||
$pathId = $row['data_page_id']?$row['data_page_id']:$row['page_id'];
|
||
$pathMP = $row['data_page_id']?$row['data_page_mp']:'';
|