1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-22 06:42:42 +01:00

Fix a "setExternalURI()" fatal while browsing directories with submodules

Summary:
Ref T13595. See that task for discussion.

D21511 renamed the iteration variable here (previously "$path") but did not rename this use of it.

Test Plan:
  - In Diffusion, browsed a directory with a submodule.
    - Before: "setExternalURI()" fatal in conduit call.
    - After: directory listing including submodule.

Maniphest Tasks: T13595

Differential Revision: https://secure.phabricator.com/D21520
This commit is contained in:
epriestley 2021-01-26 08:39:59 -08:00
parent bafe8d1bbd
commit 888604c9dd

View file

@ -240,7 +240,7 @@ final class DiffusionBrowseQueryConduitAPIMethod
$full_path = $submodule_path->getFullPath();
$key = 'submodule.'.$full_path.'.url';
if (isset($dict[$key])) {
$path->setExternalURI($dict[$key]);
$submodule_path->setExternalURI($dict[$key]);
}
}
}