summaryrefslogtreecommitdiffstats
path: root/lib/private/app/platform.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/app/platform.php')
-rw-r--r--lib/private/app/platform.php16
1 files changed, 16 insertions, 0 deletions
diff --git a/lib/private/app/platform.php b/lib/private/app/platform.php
index 292159337a0..39f8a2979f9 100644
--- a/lib/private/app/platform.php
+++ b/lib/private/app/platform.php
@@ -10,8 +10,24 @@
namespace OC\App;
+use OCP\IConfig;
+
class Platform {
+
+ function __construct(IConfig $config) {
+ $this->config = $config;
+ }
+
public function getPhpVersion() {
return phpversion();
}
+
+ public function getDatabase() {
+ $dbType = $this->config->getSystemValue('dbtype', 'sqlite');
+ if ($dbType === 'sqlite3') {
+ $dbType = 'sqlite';
+ }
+
+ return $dbType;
+ }
}