[Pkg-owncloud-commits] [owncloud] 65/165: DB: remove unused parameter - was forgotten during the migration to doctrine
David Prévot
taffit at moszumanska.debian.org
Thu Apr 23 04:06:29 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch stable8
in repository owncloud.
commit 47ecfd98a39e596c8f47dd9a6b14ece4e651f685
Author: Morris Jobke <hey at morrisjobke.de>
Date: Sat Apr 18 15:57:13 2015 +0200
DB: remove unused parameter - was forgotten during the migration to doctrine
* 377e9a8677afc92bca61fb1bb055901db8457896 <- doctrine merge
---
lib/private/db.php | 5 ++---
lib/public/db.php | 5 ++---
2 files changed, 4 insertions(+), 6 deletions(-)
diff --git a/lib/private/db.php b/lib/private/db.php
index 7e7bd4d..673ad89 100644
--- a/lib/private/db.php
+++ b/lib/private/db.php
@@ -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();
}
diff --git a/lib/public/db.php b/lib/public/db.php
index 02d0f6d..c188352 100644
--- a/lib/public/db.php
+++ b/lib/public/db.php
@@ -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());
}
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list