[TYPO3-core] Patch: duplicate labels in indexed_search
Dmitry Dulepov
dima at spamcop.net
Wed Jan 11 22:05:31 CET 2006
Commited to CVS
Dmitry.
Dmitry Dulepov wrote:
> Hello !
>
> This is a CVS patch request.
>
> Type:
> Bug (http://bugs.typo3.org/view.php?id=2198)
>
> Branches:
> TYPO3_4-0
>
> Description:
> Indexed search duplicated labels in the summary of found page. Example:
> --------------------
> Size: Size: 6.0 K - Created: Created: 22-12-05 - Modified: Modified: 24-12-05 13:53
> Path: /Produkti/Cepeškrāsnis/AKZ 669 IX
> --------------------
>
> Should be:
> --------------------
> Size: 6.0 K - Created: 22-12-05 - Modified: 24-12-05 13:53
> Path: /Produkti/Cepeškrāsnis/AKZ 669 IX
> --------------------
>
> Solution:
> Modify function makeInfo() to remove duplicate labels.
>
> Dmitry.
>
>
> ------------------------------------------------------------------------
>
> Index: class.tx_indexedsearch.php
> ===================================================================
> RCS file: /cvsroot/typo3/TYPO3core/typo3/sysext/indexed_search/pi/class.tx_indexedsearch.php,v
> retrieving revision 1.15
> diff -u -r1.15 class.tx_indexedsearch.php
> --- class.tx_indexedsearch.php 16 Oct 2005 14:05:57 -0000 1.15
> +++ class.tx_indexedsearch.php 6 Jan 2006 19:37:04 -0000
> @@ -1915,9 +1923,9 @@
> * @return array Modified template array
> */
> function makeInfo($row,$tmplArray) {
> - $tmplArray['size'] = $this->pi_getLL('res_size','',1).' '.t3lib_div::formatSize($row['item_size']).'';
> - $tmplArray['created'] = $this->pi_getLL('res_created','',1).' '.date('d-m-y',$row['item_crdate']).'';
> - $tmplArray['modified'] = $this->pi_getLL('res_modified','',1).' '.date('d-m-y H:i',$row['item_mtime']).'';
> + $tmplArray['size'] = t3lib_div::formatSize($row['item_size']).'';
> + $tmplArray['created'] = date('d-m-y',$row['item_crdate']).'';
> + $tmplArray['modified'] = date('d-m-y H:i',$row['item_mtime']).'';
>
> $pathId = $row['data_page_id']?$row['data_page_id']:$row['page_id'];
> $pathMP = $row['data_page_id']?$row['data_page_mp']:'';
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> TYPO3-team-core mailing list
> TYPO3-team-core at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-team-core
More information about the TYPO3-team-core
mailing list