Skip to content
Snippets Groups Projects
Commit 47ecfd98 authored by Morris Jobke's avatar Morris Jobke
Browse files

DB: remove unused parameter - was forgotten during the migration to doctrine

* 377e9a86 <- doctrine merge
parent 8cb0d97b
No related branches found
No related tags found
No related merge requests found
...@@ -298,17 +298,16 @@ class OC_DB { ...@@ -298,17 +298,16 @@ class OC_DB {
} }
} }
public static function getErrorCode($error) { public static function getErrorCode() {
$connection = \OC::$server->getDatabaseConnection(); $connection = \OC::$server->getDatabaseConnection();
return $connection->errorCode(); return $connection->errorCode();
} }
/** /**
* returns the error code and message as a string for logging * returns the error code and message as a string for logging
* works with DoctrineException * works with DoctrineException
* @param mixed $error
* @return string * @return string
*/ */
public static function getErrorMessage($error) { public static function getErrorMessage() {
$connection = \OC::$server->getDatabaseConnection(); $connection = \OC::$server->getDatabaseConnection();
return $connection->getError(); return $connection->getError();
} }
......
...@@ -125,12 +125,11 @@ class DB { ...@@ -125,12 +125,11 @@ class DB {
/** /**
* returns the error code and message as a string for logging * returns the error code and message as a string for logging
* works with DoctrineException * works with DoctrineException
* @param mixed $error
* @return string * @return string
* @since 6.0.0 * @since 6.0.0
*/ */
public static function getErrorMessage($error) { public static function getErrorMessage() {
return(\OC_DB::getErrorMessage($error)); return(\OC_DB::getErrorMessage());
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment