From 1fd3c5fbc0b76fd6513670445e3358b94231d41a Mon Sep 17 00:00:00 2001
From: Thomas Müller <thomas.mueller@tmit.eu>
Date: Mon, 17 Sep 2012 14:50:17 +0300
Subject: $l was undefined

---
 settings/ajax/enableapp.php | 1 +
 1 file changed, 1 insertion(+)

(limited to 'settings/ajax')

diff --git a/settings/ajax/enableapp.php b/settings/ajax/enableapp.php
index 1075a9a433c..c3b3491db93 100644
--- a/settings/ajax/enableapp.php
+++ b/settings/ajax/enableapp.php
@@ -10,5 +10,6 @@ $appid = OC_App::enable($_POST['appid']);
 if($appid !== false) {
 	OC_JSON::success(array('data' => array('appid' => $appid)));
 } else {
+	$l = OC_L10N::get('settings');	
 	OC_JSON::error(array("data" => array( "message" => $l->t("Could not enable app. ") )));
 }
-- 
cgit v1.2.3


From f85b709fae1869f684a4c91067b6a38b4e629163 Mon Sep 17 00:00:00 2001
From: Thomas Müller <thomas.mueller@tmit.eu>
Date: Mon, 17 Sep 2012 15:00:22 +0300
Subject: Use correct translation file

every translation within the sub folder 'settings' need to use 'settings' on OC_L10N::get
---
 settings/ajax/apps/ocs.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'settings/ajax')

diff --git a/settings/ajax/apps/ocs.php b/settings/ajax/apps/ocs.php
index 71cb046fc8d..b47a67c13bb 100644
--- a/settings/ajax/apps/ocs.php
+++ b/settings/ajax/apps/ocs.php
@@ -11,7 +11,7 @@ require_once '../../../lib/base.php';
 
 OC_JSON::checkAdminUser();
 
-$l = OC_L10N::get('core');
+$l = OC_L10N::get('settings');
 
 if(OC_Config::getValue('appstoreenabled', true)==false) {
 	OCP\JSON::success(array('type' => 'external', 'data' => array()));
-- 
cgit v1.2.3