Skip to content

Commit 9899a49

Browse files
marcelklehrbackportbot[bot]
authored andcommitted
fix: Use url generator to link to docs
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
1 parent 39048b5 commit 9899a49

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

‎apps/settings/lib/SetupChecks/TaskProcessingWorkerIsRunning.php‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
use OCP\AppFramework\Utility\ITimeFactory;
1313
use OCP\IAppConfig;
1414
use OCP\IL10N;
15+
use OCP\IURLGenerator;
1516
use OCP\SetupCheck\ISetupCheck;
1617
use OCP\SetupCheck\SetupResult;
1718
use OCP\TaskProcessing\IManager;
@@ -26,6 +27,7 @@ public function __construct(
2627
private readonly IManager $taskProcessingManager,
2728
private readonly ITimeFactory $timeFactory,
2829
private readonly IAppConfig $appConfig,
30+
private readonly IURLGenerator $url,
2931
) {
3032
}
3133

@@ -64,13 +66,13 @@ public function run(): SetupResult {
6466
if ($lastIteration > 0) {
6567
return SetupResult::warning(
6668
$this->l10n->t('The Task Processing worker does not seem to be running. The last run was at %s.', [date('Y-m-d H:i:s', $lastIteration)]),
67-
linkToDoc: 'https://docs.nextcloud.com/server/latest/admin_manual/ai/overview.html#improve-ai-task-pickup-speed'
69+
linkToDoc: $this->url->linkToDocs('admin-ai-pickup-speed'),
6870
);
6971
}
7072

7173
return SetupResult::warning(
7274
$this->l10n->t('The Task Processing worker does not seem to be running. It seems it has never run so far.'),
73-
linkToDoc: 'https://docs.nextcloud.com/server/latest/admin_manual/ai/overview.html#improve-ai-task-pickup-speed'
75+
linkToDoc: $this->url->linkToDocs('admin-ai-pickup-speed'),
7476
);
7577
}
7678
}

0 commit comments

Comments
 (0)