diff --git a/app/Http/Controllers/Video/Game.php b/app/Http/Controllers/Video/Game.php index ba2b975..b304aea 100644 --- a/app/Http/Controllers/Video/Game.php +++ b/app/Http/Controllers/Video/Game.php @@ -46,7 +46,7 @@ class Game { if (count($incomplete) > 0) $err = implode('、', $incomplete).'をご入力下さい。'; // スラッグが既に存在したら、エラーを出て - if (empty($err)) { + if (empty($err)) { $sl = DB::table('vid_game')->select('slug')->where('slug', $r->slug)->first(); if ($sl && $sl->slug == $r->slug) $err = 'このスラッグがもう存在しています。'; } diff --git a/app/Http/Controllers/Video/VideoTable.php b/app/Http/Controllers/Video/VideoTable.php index ff0a4aa..bb46e91 100644 --- a/app/Http/Controllers/Video/VideoTable.php +++ b/app/Http/Controllers/Video/VideoTable.php @@ -38,10 +38,10 @@ class VideoTable { $game = DB::table('vid_game')->get(); $err = ''; $res = ''; - $frm = array('title' => '', 'vid' => '', 'game_id' => '', 'thumbnail' => '', 'url' => '', 'youtube' => '', 'nicovideo' => '', 'bitchute' => '', 'lbry' => ''); + $frm = array('title' => '', 'vid' => '', 'game_id' => '', 'thumbnail' => '', 'url' => '', 'youtube' => '', 'nicovideo' => '', 'bitchute' => '', 'odysee' => ''); if (isset($r->submit)) { - if (empty($err)) { if ($r->url == '' && $r->youtube == '' && $r->nicovideo == '' && $r->bitchute == '' && $r->lbry == '') $err = '1以上の動画URLをご入力下さい。'; } + if (empty($err)) { if ($r->url == '' && $r->youtube == '' && $r->nicovideo == '' && $r->bitchute == '' && $r->odysee == '') $err = '1以上の動画URLをご入力下さい。'; } // フォームの値を保存して $frm['title'] = $r->title; @@ -53,7 +53,7 @@ class VideoTable { $frm['youtube'] = ($r->youtube ?: ''); $frm['nicovideo'] = ($r->nicovideo ?: ''); $frm['bitchute'] = ($r->bitchute ?: ''); - $frm['lbry'] = ($r->lbry ?: ''); + $frm['odysee'] = ($r->odysee ?: ''); // 件名、文章又はスラッグがなければ、エラーを出て $verify = array('件名' => $r->title, 'スラッグ' => $r->vid); @@ -109,7 +109,7 @@ class VideoTable { $res = ''; if (isset($r->submit)) { - if (empty($err)) { if ($r->url == '' && $r->youtube == '' && $r->nicovideo == '' && $r->bitchute == '' && $r->lbry == '') $err = '1以上の動画URLをご入力下さい。'; } + if (empty($err)) { if ($r->url == '' && $r->youtube == '' && $r->nicovideo == '' && $r->bitchute == '' && $r->odysee == '') $err = '1以上の動画URLをご入力下さい。'; } // フォームの値を保存して $frm->title = $r->title; @@ -120,7 +120,7 @@ class VideoTable { $frm->youtube = ($r->youtube ?: ''); $frm->nicovideo = ($r->nicovideo ?: ''); $frm->bitchute = ($r->bitchute ?: ''); - $frm->lbry = ($r->lbry ?: ''); + $frm->odysee = ($r->odysee ?: ''); // 件名、文章又はスラッグがなければ、エラーを出て $verify = array('件名' => $r->title, 'スラッグ' => $r->vid); diff --git a/public/img/lb-box.png b/public/img/lb-box.png deleted file mode 100644 index 65df9b7..0000000 Binary files a/public/img/lb-box.png and /dev/null differ diff --git a/public/img/lbry.png b/public/img/lbry.png deleted file mode 100644 index c446caf..0000000 Binary files a/public/img/lbry.png and /dev/null differ diff --git a/public/img/od-box.png b/public/img/od-box.png new file mode 100644 index 0000000..79c6987 Binary files /dev/null and b/public/img/od-box.png differ diff --git a/public/img/odysee.png b/public/img/odysee.png new file mode 100644 index 0000000..3b9ef3a Binary files /dev/null and b/public/img/odysee.png differ diff --git a/resources/views/pages/site/video/play/add.blade.php b/resources/views/pages/site/video/play/add.blade.php index 43ccef7..78951a7 100644 --- a/resources/views/pages/site/video/play/add.blade.php +++ b/resources/views/pages/site/video/play/add.blade.php @@ -52,8 +52,8 @@