Nieuws filter op regio
This commit is contained in:
@@ -59,6 +59,12 @@ class NewsItem extends Model {
|
||||
$this->keywords = explode(' ', $data->keywords);
|
||||
}
|
||||
|
||||
if(is_object($data->region)) {
|
||||
$this->region = new \Model\NewsRegion($data->region->title, $data->region->slug);
|
||||
} else {
|
||||
$this->region = new \Model\NewsRegion($data->region, $data->region_slug);
|
||||
}
|
||||
|
||||
$images = ($images != null) ? $images
|
||||
: (isset($data->images) ? $data->images : null);
|
||||
if($images) {
|
||||
|
||||
Reference in New Issue
Block a user