From cfef73805c17ae3d6ae6d5a338cf8955da30e75b Mon Sep 17 00:00:00 2001 From: mercury Date: Tue, 11 Apr 2023 00:55:50 +0400 Subject: [PATCH] fix update PAC --- app/updatepac.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/updatepac.php b/app/updatepac.php index ab0523c..5792823 100644 --- a/app/updatepac.php +++ b/app/updatepac.php @@ -283,9 +283,10 @@ function download($index) ini_set('memory_limit', '256M'); require __DIR__ . '/timezone.php'; -require __DIR__ . '/debug.php'; +// require __DIR__ . '/debug.php'; require __DIR__ . '/bot.php'; require __DIR__ . '/config.php'; +require __DIR__ . '/i18n.php'; $source = [ [ 'source' => 'https://raw.githubusercontent.com/zapret-info/z-i/master/nxdomain.txt', @@ -308,7 +309,7 @@ $load = [ switch ($_SERVER['argv'][1]) { case 'start': - $bot = new Bot($c['key']); + $bot = new Bot($c['key'], $i); $bot->input['chat'] = $_SERVER['argv'][2]; $bot->input['message_id'] = $_SERVER['argv'][3]; $bot->input['callback_id'] = $_SERVER['argv'][4];