Skip to content

Commit

Permalink
adjust wording for update hint when files of a specific app are not t…
Browse files Browse the repository at this point in the history
…here

Signed-off-by: Simon L <szaimen@e.mail.de>
  • Loading branch information
szaimen committed May 9, 2023
1 parent ca88a18 commit 6e5a307
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/base.php
Original file line number Diff line number Diff line change
Expand Up @@ -394,8 +394,8 @@ private static function printUpgradePage(\OC\SystemConfig $systemConfig): void {

if (!empty($incompatibleShippedApps)) {
$l = Server::get(\OCP\L10N\IFactory::class)->get('core');
$hint = $l->t('The files of the app %1$s were not replaced correctly. Make sure it is a version compatible with the server.', [implode(', ', $incompatibleShippedApps)]);
throw new \OCP\HintException('The files of the app ' . implode(', ', $incompatibleShippedApps) . ' were not replaced correctly. Make sure it is a version compatible with the server.', $hint);
$hint = $l->t('The files of the app %1$s were not replaced correctly or are not existing in the first place. Make sure to add a version of the app that is compatible with the server.', [implode(', ', $incompatibleShippedApps)]);
throw new \OCP\HintException('The files of the app ' . implode(', ', $incompatibleShippedApps) . ' were not replaced correctly or are not existing in the first place. Make sure to add a version of the app that is compatible with the server.', $hint);
}

$tmpl->assign('appsToUpgrade', $appManager->getAppsNeedingUpgrade($ocVersion));
Expand Down

0 comments on commit 6e5a307

Please sign in to comment.