diff options
author | Robin Appelman <icewind@owncloud.com> | 2012-04-14 16:44:15 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2012-04-14 16:44:15 +0200 |
commit | b1bcc60d83866627b1b28a0eda336e0f246dbe8e (patch) | |
tree | a7100fbd8425e90c8b90888bc16a15349519038a /files | |
parent | 721311c9099780ecc22b6b186ed79dc5c9c92271 (diff) | |
download | nextcloud-server-b1bcc60d83866627b1b28a0eda336e0f246dbe8e.tar.gz nextcloud-server-b1bcc60d83866627b1b28a0eda336e0f246dbe8e.zip |
reuse OC_L10N objects
Diffstat (limited to 'files')
-rw-r--r-- | files/ajax/upload.php | 2 | ||||
-rw-r--r-- | files/appinfo/app.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/files/ajax/upload.php b/files/ajax/upload.php index f8b8f0e2e5f..af7a7acf702 100644 --- a/files/ajax/upload.php +++ b/files/ajax/upload.php @@ -14,7 +14,7 @@ if (!isset($_FILES['files'])) { } foreach ($_FILES['files']['error'] as $error) { if ($error != 0) { - $l=new OC_L10N('files'); + $l=OC_L10N::get('files'); $errors = array( UPLOAD_ERR_OK=>$l->t("There is no error, the file uploaded with success"), UPLOAD_ERR_INI_SIZE=>$l->t("The uploaded file exceeds the upload_max_filesize directive in php.ini").ini_get('upload_max_filesize'), diff --git a/files/appinfo/app.php b/files/appinfo/app.php index 0bf73d9a07e..1b495e52f40 100644 --- a/files/appinfo/app.php +++ b/files/appinfo/app.php @@ -1,7 +1,7 @@ <?php -$l=new OC_L10N('files'); +$l=OC_L10N::get('files'); OC_App::register( array( "order" => 2, "id" => "files", "name" => "Files" )); |