Pour moi le soucis doit se trouver là dedans :
* About this RSSFit plug-in
* Author: tuff <http://www.brandycoke.com/>
* Requirements (Tested with):
* Module: News <http://www.xoops.org/>
* [b]Version: 1.1 / 1.3 / 1.42 / 1.44[/b]
* RSSFit verision: 1.2 / 1.5
* XOOPS version: 2.0.13.2 / 2.2.3
*/
if( !defined('RSSFIT_ROOT_PATH') ){ exit(); }
class RssfitNews{
var $dirname = 'news';
var $modname;
var $grab;
function RssfitNews(){
}
function loadModule(){
$mod =& $GLOBALS['module_handler']->getByDirname($this->dirname);
if( !$mod || !$mod->getVar('isactive') ){
return false;
}
$this->modname = $mod->getVar('name');
$this->module =& $mod;
return $mod;
}
function &grabEntries(&$obj){
$ret = false;
@include_once XOOPS_ROOT_PATH.'/modules/news/class/class.newsstory.php';
$myts =& MyTextSanitizer::getInstance();
if( $this->module->getVar('version') >= 130 ){
@include_once XOOPS_ROOT_PATH.'/modules/news/include/functions.php';
$news = NewsStory::getAllPublished($this->grab, 0, getmoduleoption('restrictindex'));
}else{
$news = NewsStory::getAllPublished($this->grab, 0);
}
if( count($news) > 0 ){
for( $i=0; $i<count($news); $i++ ){
$ret[$i]['title'] = $myts->undoHtmlSpecialChars($news[$i]->title());
$ret[$i]['link'] = XOOPS_URL.'/modules/news/article.php?storyid='.$news[$i]->storyid();
$ret[$i]['guid'] = XOOPS_URL.'/modules/news/article.php?storyid='.$news[$i]->storyid();
$ret[$i]['timestamp'] = $news[$i]->published();
$desc = $news[$i]->hometext();
$ret[$i]['description'] = $news[$i]->hometext();
$ret[$i]['category'] = $this->modname;
$ret[$i]['domain'] = XOOPS_URL.'/modules/'.$this->dirname.'/';
}
}
return $ret;
}
}
?>
tout d'abord, il ne serait compatible que jusque la version 1.44 de news.. et donc il faudrait quelques pour qui ce code éclaire une "faille" suite à une modification depuis cette version 1.44