diff --git a/htdocs/core/boxes/box_external_rss.php b/htdocs/core/boxes/box_external_rss.php index 2a04aa27803..54f68c5e57f 100644 --- a/htdocs/core/boxes/box_external_rss.php +++ b/htdocs/core/boxes/box_external_rss.php @@ -120,6 +120,8 @@ class box_external_rss extends ModeleBoxes // INFO on items $items = $rssparser->getItems(); //print '
'.print_r($items,true).''; + + // Loop on last items $nbitems = count($items); for ($line = 0; $line < $max && $line < $nbitems; $line++) { $item = $items[$line]; @@ -179,18 +181,18 @@ class box_external_rss extends ModeleBoxes $this->info_box_contents[$line][0] = array( 'td' => 'class="left" width="16"', - 'logo' => $this->boximg, + 'text' => img_picto('', 'rss'), 'url' => $href, 'tooltip' => $tooltip, 'target' => 'newrss', ); $this->info_box_contents[$line][1] = array( - 'td' => '', + 'td' => 'class="tdoverflowmax300"', 'text' => $title, 'url' => $href, 'tooltip' => $tooltip, - 'maxlength' => 64, + 'maxlength' => 0, 'target' => 'newrss', ); diff --git a/htdocs/core/boxes/modules_boxes.php b/htdocs/core/boxes/modules_boxes.php index 5d423a9e202..769f74da1a1 100644 --- a/htdocs/core/boxes/modules_boxes.php +++ b/htdocs/core/boxes/modules_boxes.php @@ -326,7 +326,7 @@ class ModeleBoxes // Can't be abtract as it is instantiated to build "empty" box } $maxlength = $MAXLENGTHBOX; - if (!empty($contents[$i][$j]['maxlength'])) { + if (isset($contents[$i][$j]['maxlength'])) { $maxlength = $contents[$i][$j]['maxlength']; } diff --git a/htdocs/core/lib/functions.lib.php b/htdocs/core/lib/functions.lib.php index 1bb48831113..7391785312f 100644 --- a/htdocs/core/lib/functions.lib.php +++ b/htdocs/core/lib/functions.lib.php @@ -3974,7 +3974,7 @@ function img_picto($titlealt, $picto, $moreatt = '', $pictoisfullpath = false, $ 'salary', 'shipment', 'state', 'supplier_invoice', 'supplier_invoicea', 'supplier_invoicer', 'supplier_invoiced', 'technic', 'ticket', 'error', 'warning', - 'recent', 'reception', 'recruitmentcandidature', 'recruitmentjobposition', 'resource', 'recurring', + 'recent', 'reception', 'recruitmentcandidature', 'recruitmentjobposition', 'resource', 'recurring','rss', 'shapes', 'square', 'stop-circle', 'supplier', 'supplier_proposal', 'supplier_order', 'supplier_invoice', 'timespent', 'title_setup', 'title_accountancy', 'title_bank', 'title_hrm', 'title_agenda', 'uncheck', 'user-cog', 'user-injured', 'user-md', 'vat', 'website', 'workstation', 'webhook', 'world', 'private',