|
From: <vo...@us...> - 2012-01-08 08:04:36
|
Revision: 8668
http://xoops.svn.sourceforge.net/xoops/?rev=8668&view=rev
Author: voltan1
Date: 2012-01-08 08:04:30 +0000 (Sun, 08 Jan 2012)
Log Message:
-----------
Remove html tags from list
Modified Paths:
--------------
XoopsModules/fmcontent/branches/news/class/story.php
Modified: XoopsModules/fmcontent/branches/news/class/story.php
===================================================================
--- XoopsModules/fmcontent/branches/news/class/story.php 2012-01-08 07:23:46 UTC (rev 8667)
+++ XoopsModules/fmcontent/branches/news/class/story.php 2012-01-08 08:04:30 UTC (rev 8668)
@@ -551,6 +551,8 @@
$tab ['story_update'] = formatTimestamp ( $root->getVar ( 'story_update' ), _MEDIUMDATESTRING );
$tab ['imageurl'] = XOOPS_URL . xoops_getModuleOption ( 'img_dir', $NewsModule->getVar ( 'dirname' ) ) . '/medium/' . $root->getVar ( 'story_img' );
$tab ['thumburl'] = XOOPS_URL . xoops_getModuleOption ( 'img_dir', $NewsModule->getVar ( 'dirname' ) ) . '/thumb/' . $root->getVar ( 'story_img' );
+ $tab ['story_short'] = strip_tags($root->getVar ( 'story_short' ));
+ $tab ['story_text'] = strip_tags($root->getVar ( 'story_text' ));
$ret [] = $tab;
}
}
@@ -604,6 +606,8 @@
$tab ['url'] = NewsUtils::News_Url ( $NewsModule->getVar ( 'dirname' ), $tab );
$tab ['title'] = mb_strlen ( $root->getVar ( 'story_title' ), 'utf-8' ) > $story_infos ['lenght_title'] ? mb_substr ( $root->getVar ( 'story_title' ), 0, ($story_infos ['lenght_title']), 'utf-8' ) . "..." : $root->getVar ( 'story_title' );
$tab ['date'] = formatTimestamp ( $root->getVar ( 'story_publish' ), _MEDIUMDATESTRING );
+ $tab ['story_short'] = strip_tags($root->getVar ( 'story_short' ));
+ $tab ['story_text'] = strip_tags($root->getVar ( 'story_text' ));
$ret [] = $tab;
}
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|