mirror of
https://github.com/friendica/friendica
synced 2025-04-29 02:24:22 +02:00
UserSession class [4] - Refactor src/Model/ files
This commit is contained in:
parent
a729f3255d
commit
b4ffb0bde0
9 changed files with 60 additions and 69 deletions
|
@ -23,7 +23,6 @@ namespace Friendica\Model;
|
|||
|
||||
use BadMethodCallException;
|
||||
use Friendica\Core\Logger;
|
||||
use Friendica\Core\Session;
|
||||
use Friendica\Core\System;
|
||||
use Friendica\Database\Database;
|
||||
use Friendica\Database\DBA;
|
||||
|
@ -509,7 +508,7 @@ class Post
|
|||
{
|
||||
$affected = 0;
|
||||
|
||||
Logger::info('Start Update', ['fields' => $fields, 'condition' => $condition, 'uid' => Session::getLocalUser(),'callstack' => System::callstack(10)]);
|
||||
Logger::info('Start Update', ['fields' => $fields, 'condition' => $condition, 'uid' => DI::userSession()->getLocalUserId(),'callstack' => System::callstack(10)]);
|
||||
|
||||
// Don't allow changes to fields that are responsible for the relation between the records
|
||||
unset($fields['id']);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue