1
0
lolcat 2 жил өмнө
parent
commit
453b4310e2

+ 2 - 1
api/v1/images.php

@@ -11,7 +11,8 @@ $frontend = new frontend();
 	Captcha
 */
 include "lib/captcha_gen.php";
-new captcha($frontend, false);
+$null = null;
+new captcha($null, $null, $null, "images", false);
 
 [$scraper, $filters] = $frontend->getscraperfilters(
 	"images",

+ 2 - 2
api/v1/music.php

@@ -10,9 +10,9 @@ $frontend = new frontend();
 /*
 	Captcha
 */
-$null = null;
 include "lib/captcha_gen.php";
-new captcha($null, $null, $null, $null, false);
+$null = null;
+new captcha($null, $null, $null, "music", false);
 
 [$scraper, $filters] = $frontend->getscraperfilters(
 	"music",

+ 2 - 1
api/v1/news.php

@@ -11,7 +11,8 @@ $frontend = new frontend();
 	Captcha
 */
 include "lib/captcha_gen.php";
-new captcha($frontend, false);
+$null = null;
+new captcha($null, $null, $null, "news", false);
 
 [$scraper, $filters] = $frontend->getscraperfilters(
 	"news",

+ 2 - 1
api/v1/videos.php

@@ -11,7 +11,8 @@ $frontend = new frontend();
 	Captcha
 */
 include "lib/captcha_gen.php";
-new captcha($frontend, false);
+$null = null;
+new captcha($null, $null, $null, "videos", false);
 
 [$scraper, $filters] = $frontend->getscraperfilters(
 	"videos",

+ 2 - 1
api/v1/web.php

@@ -11,7 +11,8 @@ $frontend = new frontend();
 	Captcha
 */
 include "lib/captcha_gen.php";
-new captcha($frontend, false);
+$null = null;
+new captcha($null, $null, $null, "web", false);
 
 [$scraper, $filters] = $frontend->getscraperfilters(
 	"web",