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

* 377e9a8677 <- doctrine merge
This commit is contained in:
Morris Jobke 2015-04-18 15:57:13 +02:00
parent 8cb0d97b10
commit 47ecfd98a3
2 changed files with 4 additions and 6 deletions

View file

@ -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();
}

View file

@ -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());
}
}