Differential D19191 Diff 45965 src/applications/diffusion/controller/DiffusionPathValidateController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diffusion/controller/DiffusionPathValidateController.php
| Show All 39 Lines | if (!$valid) { | ||||
| break; | break; | ||||
| } | } | ||||
| } | } | ||||
| $output = array( | $output = array( | ||||
| 'valid' => (bool)$valid, | 'valid' => (bool)$valid, | ||||
| ); | ); | ||||
| if (!$valid) { | |||||
| $branch = $drequest->getBranch(); | |||||
| if ($branch) { | |||||
| $message = pht('Not found in %s', $branch); | |||||
| } else { | |||||
| $message = pht('Not found at %s', 'HEAD'); | |||||
| } | |||||
| } else { | |||||
| $message = pht('OK'); | |||||
| } | |||||
| $output['message'] = $message; | |||||
| return id(new AphrontAjaxResponse())->setContent($output); | return id(new AphrontAjaxResponse())->setContent($output); | ||||
| } | } | ||||
| } | } | ||||