summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2014-04-19 13:49:45 +0200
committerBernhard Posselt <dev@bernhard-posselt.com>2014-04-19 13:49:45 +0200
commit934a1857b7259c64d766498420419d3916bc23aa (patch)
tree2cd449aefc05e1835778393c12b0cc2040e22df2
parent517e4ca5435106ab5304849248cbea4e9dffd4b0 (diff)
remove unneeded constructor parameter for db
-rw-r--r--app/news.php2
-rw-r--r--core/db.php6
2 files changed, 1 insertions, 7 deletions
diff --git a/app/news.php b/app/news.php
index aeb12f620..3658dac3c 100644
--- a/app/news.php
+++ b/app/news.php
@@ -263,7 +263,7 @@ class News extends App {
});
$container->registerService('Db', function($c) {
- return new Db($c['AppName']);
+ return new Db();
});
$container->registerService('Settings', function($c) {
diff --git a/core/db.php b/core/db.php
index ed9a0ee98..507f6ed85 100644
--- a/core/db.php
+++ b/core/db.php
@@ -25,12 +25,6 @@ namespace OCA\News\Core;
class Db {
- protected $appName;
-
- public function __construct($appName) {
- $this->appName = $appName;
- }
-
/**
* Used to abstract the owncloud database access away