Move to Network

Move to network namespace. Get rid of q() and try to get used to [ ] instead of array()
This commit is contained in:
Adam Magness 2017-12-04 15:59:21 -05:00
parent 9c7b6d9d5f
commit 2bbfc0640f
2 changed files with 4 additions and 7 deletions

View File

@ -2,13 +2,13 @@
/**
* @file src/Protocol/OAuth1.php
*/
namespace Friendica\Protocol;
namespace Friendica\Network;
use Friendica\App;
use Friendica\Core\PConfig;
use Friendica\Core\System;
use Friendica\Database\DBM;
use Friendica\Protocol\FKOAuthDataStore;
use Friendica\Network\FKOAuthDataStore;
use dba;
require_once "library/OAuth1.php";
@ -70,10 +70,7 @@ class FKOAuth1 extends OAuthServer
$_SESSION['cid'] = $a->cid;
}
dba::q("UPDATE `user` SET `login_date` = '%s' WHERE `uid` = %d",
dbesc(datetime_convert()),
intval($_SESSION['uid'])
);
dba::update('user', ['login_date' => datetime_convert()], ['uid' => $_SESSION['uid']]);
call_hooks('logged_in', $a->user);
}

View File

@ -5,7 +5,7 @@
* Based on oauth2-php <http://code.google.com/p/oauth2-php/>
*
*/
namespace Friendica\Protocol;
namespace Friendica\Network;
use Friendica\App;
use Friendica\Core\Config;