Переезд функции repexp; Переезд классов User в неймспейс.

This commit is contained in:
2023-04-15 22:52:33 +03:00
parent ec11709a86
commit 2d63efd915
29 changed files with 339 additions and 233 deletions
+2 -1
View File
@@ -1,6 +1,7 @@
<?php
use Core\Db;
use User\StatsModel;
/* @var User $u */
@@ -76,7 +77,7 @@ function giveDailyQuestPrize()
} else {
$u->addItem(6470, $u->info['id'], '|sudba=' . $u->info['login']);
}
$u->repexp_add($u->info['id'], 50); //Репутация +20
StatsModel::addRepexpById($u->info['id'], 50); //Репутация +20
}
if (isset($_GET['putq'])) {