Changeset View
Changeset View
Standalone View
Standalone View
src/view/page/PhabricatorStandardPageView.php
| Show First 20 Lines • Show All 763 Lines • ▼ Show 20 Lines | private function buildQuicksandConfig() { | ||||
| $controller = $this->getController(); | $controller = $this->getController(); | ||||
| $dropdown_query = id(new AphlictDropdownDataQuery()) | $dropdown_query = id(new AphlictDropdownDataQuery()) | ||||
| ->setViewer($viewer); | ->setViewer($viewer); | ||||
| $dropdown_query->execute(); | $dropdown_query->execute(); | ||||
| $rendered_dropdowns = array(); | $rendered_dropdowns = array(); | ||||
| $applications = array( | $applications = array( | ||||
| 'PhabricatorHelpApplication', | 'PhabricatorHomeApplication', | ||||
| ); | ); | ||||
| foreach ($applications as $application_class) { | foreach ($applications as $application_class) { | ||||
| if (!PhabricatorApplication::isClassInstalledForViewer( | if (!PhabricatorApplication::isClassInstalledForViewer( | ||||
| $application_class, | $application_class, | ||||
| $viewer)) { | $viewer)) { | ||||
| continue; | continue; | ||||
| } | } | ||||
| $application = PhabricatorApplication::getByClass($application_class); | $application = PhabricatorApplication::getByClass($application_class); | ||||
| $rendered_dropdowns[$application_class] = | $menu = $application->buildMainMenuExtraNodes($viewer, $controller); | ||||
| $application->buildMainMenuExtraNodes( | // TODO: Doesn't work with Quicksand active. | ||||
| $viewer, | $rendered_dropdowns[$application_class] = hsprintf('%s', $menu); | ||||
| $controller); | |||||
| } | } | ||||
| $hisec_warning_config = $this->getHighSecurityWarningConfig(); | $hisec_warning_config = $this->getHighSecurityWarningConfig(); | ||||
| $console_config = null; | $console_config = null; | ||||
| $console = $this->getConsole(); | $console = $this->getConsole(); | ||||
| if ($console) { | if ($console) { | ||||
| $console_config = $this->getConsoleConfig(); | $console_config = $this->getConsoleConfig(); | ||||
| ▲ Show 20 Lines • Show All 107 Lines • Show Last 20 Lines | |||||