Changeset View
Changeset View
Standalone View
Standalone View
src/view/page/PhabricatorBarePageView.php
Show First 20 Lines • Show All 91 Lines • ▼ Show 20 Lines | protected function getHead() { | ||||
$response = CelerityAPI::getStaticResourceResponse(); | $response = CelerityAPI::getStaticResourceResponse(); | ||||
if ($this->getRequest()) { | if ($this->getRequest()) { | ||||
$viewer = $this->getRequest()->getViewer(); | $viewer = $this->getRequest()->getViewer(); | ||||
if ($viewer) { | if ($viewer) { | ||||
$postprocessor_key = $viewer->getUserSetting( | $postprocessor_key = $viewer->getUserSetting( | ||||
PhabricatorAccessibilitySetting::SETTINGKEY); | PhabricatorAccessibilitySetting::SETTINGKEY); | ||||
if (strlen($postprocessor_key)) { | if (phutil_nonempty_string($postprocessor_key)) { | ||||
$response->setPostProcessorKey($postprocessor_key); | $response->setPostProcessorKey($postprocessor_key); | ||||
} | } | ||||
} | } | ||||
} | } | ||||
return hsprintf( | return hsprintf( | ||||
'%s%s%s%s%s', | '%s%s%s%s%s', | ||||
$viewport_tag, | $viewport_tag, | ||||
▲ Show 20 Lines • Show All 73 Lines • Show Last 20 Lines |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0