Differential D15320 Diff 36952 src/applications/typeahead/controller/PhabricatorTypeaheadModularDatasourceController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/typeahead/controller/PhabricatorTypeaheadModularDatasourceController.php
Show First 20 Lines • Show All 101 Lines • ▼ Show 20 Lines | if (isset($sources[$class])) { | ||||
} | } | ||||
$next_link = null; | $next_link = null; | ||||
if (count($results) > $limit) { | if (count($results) > $limit) { | ||||
$results = array_slice($results, 0, $limit, $preserve_keys = true); | $results = array_slice($results, 0, $limit, $preserve_keys = true); | ||||
if (($offset + (2 * $limit)) < $hard_limit) { | if (($offset + (2 * $limit)) < $hard_limit) { | ||||
$next_uri = id(new PhutilURI($request->getRequestURI())) | $next_uri = id(new PhutilURI($request->getRequestURI())) | ||||
->setQueryParam('offset', $offset + $limit) | ->setQueryParam('offset', $offset + $limit) | ||||
->setQueryParam('q', $query) | |||||
->setQueryParam('raw', $raw_query) | |||||
->setQueryParam('format', 'html'); | ->setQueryParam('format', 'html'); | ||||
$next_link = javelin_tag( | $next_link = javelin_tag( | ||||
'a', | 'a', | ||||
array( | array( | ||||
'href' => $next_uri, | 'href' => $next_uri, | ||||
'class' => 'typeahead-browse-more', | 'class' => 'typeahead-browse-more', | ||||
'sigil' => 'typeahead-browse-more', | 'sigil' => 'typeahead-browse-more', | ||||
▲ Show 20 Lines • Show All 226 Lines • Show Last 20 Lines |