Отказ от старой дублирующей addOnePoint() в пользу классовой User::addOnePointToStat().
This commit is contained in:
@@ -34,7 +34,6 @@ $edit = $_GET['edit'] ?? null;
|
||||
|
||||
if ($edit) {
|
||||
$ups = $_GET['ups'] ?? null;
|
||||
$upm = $_GET['upm'] ?? null;
|
||||
$use = $_GET['use'] ?? null;
|
||||
$useTarget = $_POST['target'] ?? null;
|
||||
$drop = $_GET['drop'] ?? null;
|
||||
@@ -45,9 +44,6 @@ if ($edit) {
|
||||
if ($ups) {
|
||||
$user->addOnePointToStat($ups);
|
||||
}
|
||||
if ($upm) {
|
||||
addOnePoint($upm, 'mastery');
|
||||
}
|
||||
if ($drop) {
|
||||
$items = new DressedItems($_SESSION['uid']);
|
||||
$items->undressItem($drop);
|
||||
|
||||
Reference in New Issue
Block a user