summaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private')
-rw-r--r--lib/private/App/CodeChecker/DeprecationCheck.php8
-rw-r--r--lib/private/Config.php2
-rw-r--r--lib/private/Tags.php12
3 files changed, 15 insertions, 7 deletions
diff --git a/lib/private/App/CodeChecker/DeprecationCheck.php b/lib/private/App/CodeChecker/DeprecationCheck.php
index 3e843e4f91a..518ab1ec380 100644
--- a/lib/private/App/CodeChecker/DeprecationCheck.php
+++ b/lib/private/App/CodeChecker/DeprecationCheck.php
@@ -46,6 +46,7 @@ class DeprecationCheck extends AbstractCheck {
'OCP\User' => '13.0.0',
'OCP\BackgroundJob' => '14.0.0',
'OCP\App' => '14.0.0',
+ 'OCP\Files' => '14.0.0',
];
}
@@ -174,6 +175,13 @@ class DeprecationCheck extends AbstractCheck {
'OCP\Util::mb_substr_replace' => '8.2.0',
'OCP\Util::sendMail' => '8.1.0',
'OCP\Util::writeLog' => '13.0.0',
+
+ 'OCP\Files::rmdirr' => '14.0.0',
+ 'OCP\Files::getMimeType' => '14.0.0',
+ 'OCP\Files::searchByMime' => '14.0.0',
+ 'OCP\Files::streamCopy' => '14.0.0',
+ 'OCP\Files::buildNotExistingFileName' => '14.0.0',
+ 'OCP\Files::getStorage' => '14.0.0',
];
}
}
diff --git a/lib/private/Config.php b/lib/private/Config.php
index 2abf00a718c..c881e485006 100644
--- a/lib/private/Config.php
+++ b/lib/private/Config.php
@@ -37,7 +37,7 @@ namespace OC;
/**
* This class is responsible for reading and writing config.php, the very basic
- * configuration file of ownCloud.
+ * configuration file of Nextcloud.
*/
class Config {
diff --git a/lib/private/Tags.php b/lib/private/Tags.php
index 2bc5572c40f..cf1c5c0fbad 100644
--- a/lib/private/Tags.php
+++ b/lib/private/Tags.php
@@ -237,7 +237,7 @@ class Tags implements \OCP\ITags {
$entries[$objId][] = $row['category'];
}
if ($result === null) {
- \OCP\Util::writeLog('core', __METHOD__. 'DB error: ' . \OCP\DB::getErrorMessage(), \OCP\Util::ERROR);
+ \OCP\Util::writeLog('core', __METHOD__. 'DB error: ' . \OC::$server->getDatabaseConnection()->getError(), \OCP\Util::ERROR);
return false;
}
}
@@ -291,7 +291,7 @@ class Tags implements \OCP\ITags {
$stmt = \OCP\DB::prepare($sql);
$result = $stmt->execute(array($tagId));
if ($result === null) {
- \OCP\Util::writeLog('core', __METHOD__. 'DB error: ' . \OCP\DB::getErrorMessage(), \OCP\Util::ERROR);
+ \OCP\Util::writeLog('core', __METHOD__. 'DB error: ' . \OC::$server->getDatabaseConnection()->getError(), \OCP\Util::ERROR);
return false;
}
} catch(\Exception $e) {
@@ -534,7 +534,7 @@ class Tags implements \OCP\ITags {
. 'WHERE `uid` = ?');
$result = $stmt->execute(array($arguments['uid']));
if ($result === null) {
- \OCP\Util::writeLog('core', __METHOD__. 'DB error: ' . \OCP\DB::getErrorMessage(), \OCP\Util::ERROR);
+ \OCP\Util::writeLog('core', __METHOD__. 'DB error: ' . \OC::$server->getDatabaseConnection()->getError(), \OCP\Util::ERROR);
}
} catch(\Exception $e) {
\OC::$server->getLogger()->logException($e, [
@@ -572,7 +572,7 @@ class Tags implements \OCP\ITags {
. 'WHERE `uid` = ?');
$result = $stmt->execute(array($arguments['uid']));
if ($result === null) {
- \OCP\Util::writeLog('core', __METHOD__. ', DB error: ' . \OCP\DB::getErrorMessage(), \OCP\Util::ERROR);
+ \OCP\Util::writeLog('core', __METHOD__. ', DB error: ' . \OC::$server->getDatabaseConnection()->getError(), \OCP\Util::ERROR);
}
} catch(\Exception $e) {
\OC::$server->getLogger()->logException($e, [
@@ -603,7 +603,7 @@ class Tags implements \OCP\ITags {
$stmt = \OCP\DB::prepare($query);
$result = $stmt->execute($updates);
if ($result === null) {
- \OCP\Util::writeLog('core', __METHOD__. 'DB error: ' . \OCP\DB::getErrorMessage(), \OCP\Util::ERROR);
+ \OCP\Util::writeLog('core', __METHOD__. 'DB error: ' . \OC::$server->getDatabaseConnection()->getError(), \OCP\Util::ERROR);
return false;
}
} catch(\Exception $e) {
@@ -773,7 +773,7 @@ class Tags implements \OCP\ITags {
$result = $stmt->execute(array($id));
if ($result === null) {
\OCP\Util::writeLog('core',
- __METHOD__. 'DB error: ' . \OCP\DB::getErrorMessage(),
+ __METHOD__. 'DB error: ' . \OC::$server->getDatabaseConnection()->getError(),
\OCP\Util::ERROR);
return false;
}