Changeset View
Changeset View
Standalone View
Standalone View
src/aphront/response/AphrontAjaxResponse.php
Show First 20 Lines • Show All 58 Lines • ▼ Show 20 Lines | public function buildResponseString() { | ||||
$response = CelerityAPI::getStaticResourceResponse(); | $response = CelerityAPI::getStaticResourceResponse(); | ||||
if ($request) { | if ($request) { | ||||
$viewer = $request->getViewer(); | $viewer = $request->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); | ||||
} | } | ||||
} | } | ||||
} | } | ||||
$object = $response->buildAjaxResponse( | $object = $response->buildAjaxResponse( | ||||
$content['payload'], | $content['payload'], | ||||
$this->error); | $this->error); | ||||
Show All 14 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