Fix & typo

Signed-off-by: Riccardo Di Dato <r.didato@asdynamics.it>
This commit is contained in:
Riccardo Di Dato
2017-07-31 15:26:18 +02:00
parent 025af91c1b
commit 12413de384
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -107,7 +107,7 @@ class NotiziaModel extends HasMediaModel{
public function cutTextHtmlSafe($attrName, $size){
$rval = strval( $this->$attrName );
if (strlen($rval) > ($size + 3) ){
$rval = html_entity_decode( $rval , ENT_QUOTES|ENT_HTML5 );
$rval = html_entity_decode( $rval , ENT_QUOTES );
$rval = substr($rval, 0, $size);
$rval = htmlentities($rval) . "...";
}
+1 -1
View File
@@ -231,7 +231,7 @@ catch (Exception $ex){
</div>
<div class="newsContainer">
<div class="categoryBar" style="background-color:<?php echo NotiziaModel::$NOTIZIE_CATEGORY[NotiziaModel::CATEGORY_RISTORANTI]["color"] ?>">
<span>SPORT</span>
<span><?php echo NotiziaModel::$NOTIZIE_CATEGORY[NotiziaModel::CATEGORY_RISTORANTI]["label"] ?></span>
</div>
<?php if(sizeof($foodNews)>0){
$i=0;