summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2014-10-14 09:37:47 +0200
committerBernhard Posselt <dev@bernhard-posselt.com>2014-10-14 09:37:59 +0200
commit1a31d82d61304db501cea5bb08e1724f81cfbdf3 (patch)
tree1873dfe04f1577bbfb392e49a1477aaa7df56c89 /config
parent0424f1be57b3e6b658a8ee3de454c3aad7fbb50b (diff)
fix #634
Diffstat (limited to 'config')
-rw-r--r--config/appconfig.php8
1 files changed, 2 insertions, 6 deletions
diff --git a/config/appconfig.php b/config/appconfig.php
index 3729e56b2..0c59ba005 100644
--- a/config/appconfig.php
+++ b/config/appconfig.php
@@ -14,7 +14,6 @@
namespace OCA\News\Config;
use OCP\INavigationManager;
-use OCP\IL10N;
use OCP\IURLGenerator;
use \OCP\Backgroundjob;
use \OCP\Util;
@@ -30,7 +29,6 @@ class AppConfig {
private $ownCloudVersion;
private $installedExtensions;
private $databaseType;
- private $l10n;
/**
* TODO: External deps that are needed:
@@ -38,14 +36,12 @@ class AppConfig {
* - connect to hooks
*/
public function __construct(INavigationManager $navigationManager,
- IL10N $l10n,
IURLGenerator $urlGenerator,
$phpVersion,
$ownCloudVersion,
$installedExtensions,
$databaseType) {
$this->navigationManager = $navigationManager;
- $this->l10n = $l10n;
$this->urlGenerator = $urlGenerator;
$this->ownCloudVersion = $ownCloudVersion;
$this->phpVersion = $phpVersion;
@@ -111,10 +107,10 @@ class AppConfig {
$navConfig = [
'id' => $nav['id'],
- 'order' => $nav['order']
+ 'order' => $nav['order'],
+ 'name' => $nav['name']
];
- $navConfig['name'] = $this->l10n->t($nav['name']);
$navConfig['href'] = $this->urlGenerator->linkToRoute($nav['route']);
$navConfig['icon'] = $this->urlGenerator->imagePath($nav['id'],
$nav['icon']);