Kleine wijzigingen layout, kerkdienst
This commit is contained in:
@@ -22,6 +22,10 @@ class Controller extends BaseController
|
||||
|
||||
protected function registerView(Request $request, $type, $id)
|
||||
{
|
||||
if(config('app.debug')) {
|
||||
return;
|
||||
}
|
||||
|
||||
app('db')->insert('INSERT INTO `pagestats`(`type`, `item_id`, `visitor_ip`, `session`, `referer`) VALUES(:type, :id, :ip, :session, :referer)', [
|
||||
'type' => $type,
|
||||
'id' => $id,
|
||||
|
||||
@@ -39,10 +39,8 @@ class RadioController extends Controller
|
||||
|
||||
public function podcast(Request $request, $id)
|
||||
{
|
||||
if(!config('app.debug')) {
|
||||
parent::registerView($request, 'podcast', $id);
|
||||
}
|
||||
$apiResult = $this->API('podcast/details/' . (int)$id);
|
||||
parent::registerView($request, 'podcast', $id);
|
||||
$apiResult = $this->API('podcast/details/' . (int)$id);
|
||||
$podcast = new \Model\Podcast($apiResult);
|
||||
|
||||
$related = [];
|
||||
|
||||
@@ -10,7 +10,7 @@ class StreamController extends Controller
|
||||
public function liveradio()
|
||||
{
|
||||
return view('listen', [
|
||||
'source' => 'http://6fm.nl:8000/mp3live',
|
||||
'source' => 'http://stream.nhgooi.nl:8000/mp3live',
|
||||
'title' => 'Luister live',
|
||||
'content' => 'de live-uitzending van NH Gooi.',
|
||||
'isStream' => true ]);
|
||||
|
||||
Reference in New Issue
Block a user