Skip to content

Commit

Permalink
реално ИП и за историята
Browse files Browse the repository at this point in the history
  • Loading branch information
mitko authored and mitko committed Dec 28, 2022
1 parent d23e290 commit e26af0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vislog/History.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ public static function on_BeforeSave($mvc, $id, &$rec)
{
// Поставяме IP ако липсва
if (!$rec->ip) {
$rec->ip = $_SERVER['REMOTE_ADDR'];
$rec->ip = type_Ip::getRealIp();
}

if (!$rec->brid) {
Expand Down

0 comments on commit e26af0f

Please sign in to comment.