From b1bcc60d83866627b1b28a0eda336e0f246dbe8e Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Sat, 14 Apr 2012 16:44:15 +0200 Subject: reuse OC_L10N objects --- core/ajax/translations.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/ajax/translations.php') diff --git a/core/ajax/translations.php b/core/ajax/translations.php index 2e436f8d84e..a6433b1964a 100644 --- a/core/ajax/translations.php +++ b/core/ajax/translations.php @@ -26,7 +26,7 @@ require_once('../../lib/base.php'); $app = $_POST["app"]; -$l = new OC_L10N( $app ); +$l = OC_L10N::get( $app ); OC_JSON::success(array('data' => $l->getTranslations())); ?> -- cgit v1.2.3