Fixed deprecation warnings and improved compatibility with newer versions.
This commit is contained in:
@@ -19,7 +19,7 @@ class Helper
|
||||
{
|
||||
$this->dbconn = new DbHelper();
|
||||
$this->tablename = $this->dbconn->queryBuilder->getTableName("ncdownloader_info");
|
||||
$this->user = \OC::$server->getUserSession()->getUser()->getUID();
|
||||
$this->user = \OC::$server->get(\OCP\IUserSession::class)->getUser()->getUID();
|
||||
}
|
||||
|
||||
public static function create()
|
||||
|
||||
Reference in New Issue
Block a user