WIP: разгрузка User:class от сторонних методов.
This commit is contained in:
@@ -4,9 +4,8 @@ if(!defined('GAME'))
|
||||
die();
|
||||
}
|
||||
|
||||
if( $itm['id'] > 0 ) {
|
||||
$u->deleteItem($itm['id']);
|
||||
mysql_query('update `rep` set `rep1` = `rep1` + 100 WHERE `id` = "'.$u->info['id'].'" LIMIT 1');
|
||||
$u->error = 'Вы повысили репутацию Храма Знаний на +100 ед.';
|
||||
}
|
||||
?>
|
||||
if($itm['id'] <= 0) {
|
||||
return;
|
||||
}
|
||||
$u->deleteItem($itm['id']);
|
||||
$u->error = \Location\KnowledgeTemple::addReputation(100);
|
||||
|
||||
Reference in New Issue
Block a user