Browse Source

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

* 377e9a8677 <- doctrine merge
tags/v8.1.0alpha2
Morris Jobke 9 years ago
parent
commit
47ecfd98a3
2 changed files with 4 additions and 6 deletions
  1. 2
    3
      lib/private/db.php
  2. 2
    3
      lib/public/db.php

+ 2
- 3
lib/private/db.php 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();
}

+ 2
- 3
lib/public/db.php 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());
}

}

Loading…
Cancel
Save