Changeset View
Changeset View
Standalone View
Standalone View
src/view/page/PhabricatorStandardPageView.php
Show First 20 Lines • Show All 866 Lines • ▼ Show 20 Lines | if ($this->getRequest()->isQuicksand()) { | ||||
$content = $this->renderForQuicksand(); | $content = $this->renderForQuicksand(); | ||||
$response = id(new AphrontAjaxResponse()) | $response = id(new AphrontAjaxResponse()) | ||||
->setContent($content); | ->setContent($content); | ||||
} else { | } else { | ||||
// See T13247. Try to find some navigational menu items to create a | // See T13247. Try to find some navigational menu items to create a | ||||
// mobile navigation menu from. | // mobile navigation menu from. | ||||
$application_menu = $controller->buildApplicationMenu(); | $application_menu = $controller->buildApplicationMenu(); | ||||
if (!$application_menu) { | if (!$application_menu) { | ||||
$application_menu = $this->getNavigation()->getMenu(); | $navigation = $this->getNavigation(); | ||||
if ($navigation) { | |||||
$application_menu = $navigation->getMenu(); | |||||
} | |||||
} | } | ||||
$this->applicationMenu = $application_menu; | $this->applicationMenu = $application_menu; | ||||
$content = $this->render(); | $content = $this->render(); | ||||
$response = id(new AphrontWebpageResponse()) | $response = id(new AphrontWebpageResponse()) | ||||
->setContent($content) | ->setContent($content) | ||||
->setFrameable($this->getFrameable()); | ->setFrameable($this->getFrameable()); | ||||
} | } | ||||
return $response; | return $response; | ||||
} | } | ||||
} | } |