Skip to content

Commit

Permalink
Merge pull request #28702 from owncloud/stable10-cannot
Browse files Browse the repository at this point in the history
[stable10] Remove apostrophe from error text
  • Loading branch information
Vincent Petry authored Aug 16, 2017
2 parents 27e43fb + 3c4a14b commit 975e6b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/private/legacy/files.php
Original file line number Diff line number Diff line change
Expand Up @@ -177,13 +177,13 @@ public static function get($dir, $files, $params = null) {
self::unlockAllTheFiles($dir, $files, $getType, $view, $filename);
OC::$server->getLogger()->logException($ex);
$l = \OC::$server->getL10N('core');
\OC_Template::printErrorPage($l->t('Can\'t read file'), $ex->getMessage(), 403);
\OC_Template::printErrorPage($l->t('File cannot be read'), $ex->getMessage(), 403);
} catch (\Exception $ex) {
self::unlockAllTheFiles($dir, $files, $getType, $view, $filename);
OC::$server->getLogger()->logException($ex);
$l = \OC::$server->getL10N('core');
$hint = method_exists($ex, 'getHint') ? $ex->getHint() : '';
\OC_Template::printErrorPage($l->t('Can\'t read file'), $hint);
\OC_Template::printErrorPage($l->t('File cannot be read'), $hint);
}
}

Expand Down

0 comments on commit 975e6b9

Please sign in to comment.