From: Jörn Friedrich Dreyer Date: Thu, 3 Jan 2013 10:57:42 +0000 (+0100) Subject: move $l to top X-Git-Tag: v5.0.0alpha1~265^2~1 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=f19787f84c775bf74a9266a2fd44b73fb42312f0;p=nextcloud-server.git move $l to top --- f19787f84c775bf74a9266a2fd44b73fb42312f0 diff --cc apps/files/ajax/upload.php index 4053cf5f8b0,8513736835f..d9960494cc8 --- a/apps/files/ajax/upload.php +++ b/apps/files/ajax/upload.php @@@ -8,12 -8,14 +8,13 @@@ OCP\JSON::setContentTypeHeader('text/pl OCP\JSON::checkLoggedIn(); OCP\JSON::callCheck(); +$l=OC_L10N::get('files'); if (!isset($_FILES['files'])) { - OCP\JSON::error(array('data' => array( 'message' => 'No file was uploaded. Unknown error' ))); + OCP\JSON::error(array('data' => array( 'message' => $l->t( 'No file was uploaded. Unknown error' )))); exit(); } + -$l=OC_L10N::get('files'); - foreach ($_FILES['files']['error'] as $error) { if ($error != 0) { $errors = array(