bugfix #178 - no more use of pear parser, just use php simplexml
Dieser Commit ist enthalten in:
Ursprung
f2b154c7c3
Commit
f90445a40e
1 geänderte Dateien mit 6 neuen und 8 gelöschten Zeilen
|
@ -690,19 +690,17 @@ class Contenido_UpdateNotifier {
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this->sRSSContent != '') {
|
if ($this->sRSSContent != '') {
|
||||||
$temp = mb_convert_encoding( file_get_contents($this->sCacheDirectory . $this->sRSSFile), 'UTF-8', "ISO-8859-1" );
|
|
||||||
$oRss = simplexml_load_file($this->sCacheDirectory . $this->sRSSFile);
|
$oRss = simplexml_load_file($this->sCacheDirectory . $this->sRSSFile);
|
||||||
|
|
||||||
//$oRss->parse();
|
|
||||||
|
|
||||||
$iCnt = 0;
|
$iCnt = 0;
|
||||||
foreach ($oRss->channel->item as $aItem) {
|
foreach ($oRss->channel->item as $aItem) {
|
||||||
|
//print_r($aItem);
|
||||||
$sText = clHtmlEntities(utf8_decode($aItem->description), ENT_QUOTES);
|
$sText = clHtmlEntities(utf8_decode($aItem->description), ENT_QUOTES);
|
||||||
if (strlen($sText) > 150) {
|
if (strlen($sText) > 150) {
|
||||||
$sText = capiStrTrimAfterWord($sText, 150) . '...';
|
$sText = capiStrTrimAfterWord($sText, 150) . '...';
|
||||||
}
|
}
|
||||||
|
//echo $aItem->title;
|
||||||
$oTpl->set("d", "NEWS_DATE", $aItem->pubdate);
|
$oTpl->set("d", "NEWS_DATE", $aItem->pubDate);
|
||||||
$oTpl->set("d", "NEWS_TITLE", utf8_decode($aItem->title));
|
$oTpl->set("d", "NEWS_TITLE", utf8_decode($aItem->title));
|
||||||
$oTpl->set("d", "NEWS_TEXT", $sText);
|
$oTpl->set("d", "NEWS_TEXT", $sText);
|
||||||
$oTpl->set("d", "NEWS_URL", $aItem->link);
|
$oTpl->set("d", "NEWS_URL", $aItem->link);
|
||||||
|
|
Laden …
In neuem Issue referenzieren