mirror of
https://github.com/nextcloud/server.git
synced 2026-02-23 18:05:02 -05:00
DB: remove unused parameter - was forgotten during the migration to doctrine
* 377e9a8677 <- doctrine merge
This commit is contained in:
parent
8cb0d97b10
commit
47ecfd98a3
2 changed files with 4 additions and 6 deletions
|
|
@ -298,17 +298,16 @@ class OC_DB {
|
|||
}
|
||||
}
|
||||
|
||||
public static function getErrorCode($error) {
|
||||
public static function getErrorCode() {
|
||||
$connection = \OC::$server->getDatabaseConnection();
|
||||
return $connection->errorCode();
|
||||
}
|
||||
/**
|
||||
* returns the error code and message as a string for logging
|
||||
* works with DoctrineException
|
||||
* @param mixed $error
|
||||
* @return string
|
||||
*/
|
||||
public static function getErrorMessage($error) {
|
||||
public static function getErrorMessage() {
|
||||
$connection = \OC::$server->getDatabaseConnection();
|
||||
return $connection->getError();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -125,12 +125,11 @@ class DB {
|
|||
/**
|
||||
* returns the error code and message as a string for logging
|
||||
* works with DoctrineException
|
||||
* @param mixed $error
|
||||
* @return string
|
||||
* @since 6.0.0
|
||||
*/
|
||||
public static function getErrorMessage($error) {
|
||||
return(\OC_DB::getErrorMessage($error));
|
||||
public static function getErrorMessage() {
|
||||
return(\OC_DB::getErrorMessage());
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue