CVS update: /cowiki/includes/cowiki/plugin/
[email protected] 26 Aug 2005 15:00:08 -0000
| Newsgroups | gmane.comp.php.cowiki.cvs |
|---|---|
| Message-ID | <[email protected]> |
User: dgorski Date: 2005/08/26 08:00:08 Modified: cowiki/includes/cowiki/plugin/class.CustomRssViewer.php Log: Removed tabs, keep code width < 80 chars File Changes: Directory: /cowiki/includes/cowiki/plugin/ ========================================== File [changed]: class.CustomRssViewer.php Url: http://cowiki.tigris.org/source/browse/cowiki/includes/cowiki/plugin/class.CustomRssViewer.php?r1=1.8&r2=1.9 Delta lines: +15 -6 -------------------- --- class.CustomRssViewer.php 26 Aug 2005 06:19:59 -0000 1.8 +++ class.CustomRssViewer.php 26 Aug 2005 15:00:06 -0000 1.9 @@ -2,7 +2,7 @@ /** * - * $Id: class.CustomRssViewer.php,v 1.8 2005/08/26 06:19:59 ytjohn Exp $ + * $Id: class.CustomRssViewer.php,v 1.9 2005/08/26 15:00:06 dgorski Exp $ * * This file is part of coWiki. coWiki is free software under the terms of * the GNU General Public License (GPL). Read the LICENSE file. If you did @@ -37,7 +37,7 @@ * @author Kai Schröder, <[email protected]> * @copyright (C) Kai Schröder {@link http://kai.cowiki.org} * @license http://www.gnu.org/licenses/gpl.html - * @version $Revision: 1.8 $ + * @version $Revision: 1.9 $ * */ @@ -100,6 +100,7 @@ $nExpire = $this->Context->getPluginParam('expires') ? (int)abs($this->Context->getPluginParam('expires')) : 3600; + $sEncode = $this->Context->getPluginParam('encode') ? $this->Context->getPluginParam('encode') : 'iso-8859-1'; @@ -164,8 +165,16 @@ } $aTplItem[] = array( 'HREF' => $Item->get('link'), - 'NAME' => htmlentities($Item->get('title'),ENT_COMPAT,$sEncode), - 'TEASER' => htmlentities($Item->get('description'),ENT_COMPAT,$sEncode), + 'NAME' => htmlentities( + $Item->get('title'), + ENT_COMPAT, + $sEncode + ), + 'TEASER' => htmlentities( + $Item->get('description'), + ENT_COMPAT, + $sEncode + ), 'DATE' => $Item->getRelativeDate() ); $aDates[] = $Item->getRelativeDate();