summaryrefslogtreecommitdiffstats
path: root/lib/private/l10n.php
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@owncloud.com>2015-08-28 12:04:52 +0200
committerJoas Schilling <nickvergessen@owncloud.com>2015-08-28 12:04:52 +0200
commita12d3547627611a933b3e70ab5b51c2e130b0e24 (patch)
tree41985ca866fbef97d97833e2e5697811c507828a /lib/private/l10n.php
parentc3c7689b6743e5d36a6d46730a53b058499ca97a (diff)
downloadnextcloud-server-a12d3547627611a933b3e70ab5b51c2e130b0e24.tar.gz
nextcloud-server-a12d3547627611a933b3e70ab5b51c2e130b0e24.zip
Deprecate OC_L10N::get()
Diffstat (limited to 'lib/private/l10n.php')
-rw-r--r--lib/private/l10n.php9
1 files changed, 3 insertions, 6 deletions
diff --git a/lib/private/l10n.php b/lib/private/l10n.php
index 17acaac1692..168011cfcec 100644
--- a/lib/private/l10n.php
+++ b/lib/private/l10n.php
@@ -81,14 +81,11 @@ class OC_L10N implements \OCP\IL10N {
* get an L10N instance
* @param string $app
* @param string|null $lang
- * @return \OC_L10N
+ * @return \OCP\IL10N
+ * @deprecated Use \OC::$server->getL10NFactory()->get() instead
*/
public static function get($app, $lang=null) {
- if (is_null($lang)) {
- return OC::$server->getL10N($app);
- } else {
- return new \OC_L10N($app, $lang);
- }
+ return \OC::$server->getL10NFactory()->get($app, $lang);
}
/**