summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/db.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/db.php b/lib/db.php
index 9270b2a1517..102782ac6ba 100644
--- a/lib/db.php
+++ b/lib/db.php
@@ -164,6 +164,11 @@ class OC_DB {
return true;
}
+ static public function getConnection() {
+ self::connect();
+ return self::$connection;
+ }
+
/**
* @brief Prepare a SQL query
* @param string $query Query string