changed keyword order

This commit is contained in:
Pablo Ferreiro 2023-04-27 20:23:23 +02:00
parent e43580f3f9
commit 19a2066fc2
No known key found for this signature in database
GPG key ID: 41FBCE65B779FA24
15 changed files with 41 additions and 40 deletions

View file

@ -8,7 +8,7 @@ use App\Helpers\UrlBuilder;
* Used to be compatible with HTML forms
*/
class RedirectController {
static public function search() {
public static function search() {
$endpoint = '/';
if (isset($_GET['type'], $_GET['term'])) {
$term = trim($_GET['term']);
@ -49,7 +49,7 @@ class RedirectController {
header("Location: {$url}");
}
static public function download() {
public static function download() {
if (!(isset($_GET['videoId'], $_GET['authorUsername'], $_GET['playAddr']))) {
ErrorHandler::showText(400, 'Request incomplete');
return;