Adapt for NC35
This commit is contained in:
+1
-1
@@ -53,7 +53,7 @@ class Cache
|
||||
*/
|
||||
public function __construct($AppName, IConfig $config, LoggerInterface $logger)
|
||||
{
|
||||
$factory = \OC::$server->getMemCacheFactory();
|
||||
$factory = \OC::$server->get(\OC\Memcache\Factory::class);
|
||||
$useCache = $config->getAppValue(
|
||||
$AppName, Opt::USE_CACHE, App::FALSE_VALUE
|
||||
);
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
/**
|
||||
* Nextcloud - user_sql
|
||||
*
|
||||
* @copyright 2021 Marcin Łojewski <dev@mlojewski.me>
|
||||
* @copyright 2021, 2026 Marcin Łojewski <dev@mlojewski.me>
|
||||
* @author Marcin Łojewski <dev@mlojewski.me>
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
@@ -157,7 +157,7 @@ class SettingsController extends Controller
|
||||
}
|
||||
|
||||
$connectionFactory = new ConnectionFactory(
|
||||
\OC::$server->getSystemConfig()
|
||||
\OC::$server->get(\OC\SystemConfig::class),
|
||||
);
|
||||
|
||||
$parameters = [
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
/**
|
||||
* Nextcloud - user_sql
|
||||
*
|
||||
* @copyright 2021 Marcin Łojewski <dev@mlojewski.me>
|
||||
* @copyright 2021, 2026 Marcin Łojewski <dev@mlojewski.me>
|
||||
* @author Marcin Łojewski <dev@mlojewski.me>
|
||||
* @copyright 2025 Claus-Justus Heine
|
||||
* @author Claus-Justus Heine <himself@claus-justus-heine.de>
|
||||
@@ -143,7 +143,7 @@ class DataQuery
|
||||
private function connectToDatabase()
|
||||
{
|
||||
$connectionFactory = new ConnectionFactory(
|
||||
\OC::$server->getSystemConfig()
|
||||
\OC::$server->get(\OC\SystemConfig::class),
|
||||
);
|
||||
|
||||
$parameters = array(
|
||||
|
||||
Reference in New Issue
Block a user