Differential D20279 Diff 48493 src/applications/search/controller/PhabricatorApplicationSearchController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/search/controller/PhabricatorApplicationSearchController.php
| Show First 20 Lines • Show All 270 Lines • ▼ Show 20 Lines | if ($run_query) { | ||||
| $box->appendChild($nux_view); | $box->appendChild($nux_view); | ||||
| } else { | } else { | ||||
| $list = $engine->renderResults($objects, $saved_query); | $list = $engine->renderResults($objects, $saved_query); | ||||
| if (!($list instanceof PhabricatorApplicationSearchResultView)) { | if (!($list instanceof PhabricatorApplicationSearchResultView)) { | ||||
| throw new Exception( | throw new Exception( | ||||
| pht( | pht( | ||||
| 'SearchEngines must render a "%s" object, but this engine '. | 'SearchEngines must render a "%s" object, but this engine '. | ||||
| '(of class "%s") rendered something else.', | '(of class "%s") rendered something else ("%s").', | ||||
| 'PhabricatorApplicationSearchResultView', | 'PhabricatorApplicationSearchResultView', | ||||
| get_class($engine))); | get_class($engine), | ||||
| phutil_describe_type($list))); | |||||
| } | } | ||||
| if ($list->getObjectList()) { | if ($list->getObjectList()) { | ||||
| $box->setObjectList($list->getObjectList()); | $box->setObjectList($list->getObjectList()); | ||||
| } | } | ||||
| if ($list->getTable()) { | if ($list->getTable()) { | ||||
| $box->setTable($list->getTable()); | $box->setTable($list->getTable()); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 691 Lines • Show Last 20 Lines | |||||