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

(stable) Fix global search scope fatal on 404 page (or other pages with no Application)

Summary: Ref T13405. Some pages don't have a contextual application.

Test Plan: Viewed 404 page, no more fatal.

Maniphest Tasks: T13405

Differential Revision: https://secure.phabricator.com/D20792
This commit is contained in:
epriestley 2019-09-09 12:10:21 -07:00
parent ec931b9384
commit 984e253d41

View file

@ -118,7 +118,7 @@ final class PhabricatorMainMenuSearchView extends AphrontView {
public static function getGlobalSearchScopeItems(
PhabricatorUser $viewer,
PhabricatorApplication $application) {
PhabricatorApplication $application = null) {
$items = array();
$items[] = array(