mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-22 05:20:56 +01:00
Fix Diffusion crash
Summary: This fixes a crash that happens when visiting Diffusion pages due to an undefined variable. `$title` is only defined if it has a status to show, but then it uses it anyway and fails. Test Plan: Pages stopped crashing and people stopped complaining. Reviewers: epriestley, #blessed_reviewers Reviewed By: epriestley, #blessed_reviewers Subscribers: epriestley, Korvin Differential Revision: https://secure.phabricator.com/D8906
This commit is contained in:
parent
31580f19d9
commit
466af33147
1 changed files with 1 additions and 0 deletions
|
@ -255,6 +255,7 @@ abstract class DiffusionController extends PhabricatorController {
|
|||
|
||||
private function buildRepositoryWarning(PhabricatorRepository $repository) {
|
||||
$error_view = null;
|
||||
$title = null;
|
||||
if ($repository->isImporting()) {
|
||||
$title = pht('This repository is still importing.');
|
||||
$body = pht('Things may not work properly until the import finishes.');
|
||||
|
|
Loading…
Reference in a new issue