mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 09:49:28 +02:00
This commit is contained in:
parent
9d1ad67b23
commit
5c1684c837
3 changed files with 3 additions and 3 deletions
|
@ -21,7 +21,7 @@ Video::unsetAddView($video['id']);
|
||||||
AVideoPlugin::getEmbed($video['id']);
|
AVideoPlugin::getEmbed($video['id']);
|
||||||
|
|
||||||
if (empty($video)) {
|
if (empty($video)) {
|
||||||
$msg = 'Video not found';
|
$msg = __('Video not found');
|
||||||
if (User::isAdmin()) {
|
if (User::isAdmin()) {
|
||||||
$msg = "{$msg} " . json_encode($_GET);
|
$msg = "{$msg} " . json_encode($_GET);
|
||||||
}
|
}
|
||||||
|
|
|
@ -28,7 +28,7 @@ $videos_id = intval($vars["v"]);
|
||||||
$video = Video::getVideo($videos_id);
|
$video = Video::getVideo($videos_id);
|
||||||
|
|
||||||
if (empty($video)) {
|
if (empty($video)) {
|
||||||
forbiddenPage("Video not found");
|
forbiddenPage(__("Video not found"));
|
||||||
}
|
}
|
||||||
|
|
||||||
$format = 'json';
|
$format = 'json';
|
||||||
|
|
|
@ -34,7 +34,7 @@ Video::unsetAddView($video['id']);
|
||||||
AVideoPlugin::getEmbed($video['id']);
|
AVideoPlugin::getEmbed($video['id']);
|
||||||
|
|
||||||
if (empty($video)) {
|
if (empty($video)) {
|
||||||
$msg = 'Video not found';
|
$msg = __('Video not found');
|
||||||
if (User::isAdmin()) {
|
if (User::isAdmin()) {
|
||||||
$msg = "{$msg} " . json_encode($_GET);
|
$msg = "{$msg} " . json_encode($_GET);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue