aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2018-01-05 13:58:28 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2018-01-09 16:09:57 +0100
commite2c77e46ab9c12d1ba990ad1437065a48a1667d6 (patch)
treeb5f600bee75dc32d9ab3e88dce749efc30acc46a /core
parent4c92d096b8a75516ade3bef43d5206eb489aef89 (diff)
downloadnextcloud-server-e2c77e46ab9c12d1ba990ad1437065a48a1667d6.tar.gz
nextcloud-server-e2c77e46ab9c12d1ba990ad1437065a48a1667d6.zip
Use correct L10N files for jsconfig
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'core')
-rw-r--r--core/Controller/OCJSController.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/core/Controller/OCJSController.php b/core/Controller/OCJSController.php
index 9c19f0c0adf..dc3071b0e79 100644
--- a/core/Controller/OCJSController.php
+++ b/core/Controller/OCJSController.php
@@ -31,11 +31,11 @@ use OCP\AppFramework\Http\DataDisplayResponse;
use OCP\Defaults;
use OCP\IConfig;
use OCP\IGroupManager;
-use OCP\IL10N;
use OCP\IRequest;
use OCP\ISession;
use OCP\IURLGenerator;
use OCP\IUserSession;
+use OCP\L10N\IFactory;
class OCJSController extends Controller {
@@ -47,7 +47,7 @@ class OCJSController extends Controller {
*
* @param string $appName
* @param IRequest $request
- * @param IL10N $l
+ * @param IFactory $l10nFactory
* @param Defaults $defaults
* @param IAppManager $appManager
* @param ISession $session
@@ -59,7 +59,7 @@ class OCJSController extends Controller {
*/
public function __construct($appName,
IRequest $request,
- IL10N $l,
+ IFactory $l10nFactory,
Defaults $defaults,
IAppManager $appManager,
ISession $session,
@@ -71,7 +71,7 @@ class OCJSController extends Controller {
parent::__construct($appName, $request);
$this->helper = new JSConfigHelper(
- $l,
+ $l10nFactory->get('lib'),
$defaults,
$appManager,
$session,