Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diffusion/controller/DiffusionTagListController.php
Show All 19 Lines | public function handleRequest(AphrontRequest $request) { | ||||
$pager = id(new PHUIPagerView()) | $pager = id(new PHUIPagerView()) | ||||
->readFromRequest($request); | ->readFromRequest($request); | ||||
$params = array( | $params = array( | ||||
'limit' => $pager->getPageSize() + 1, | 'limit' => $pager->getPageSize() + 1, | ||||
'offset' => $pager->getOffset(), | 'offset' => $pager->getOffset(), | ||||
); | ); | ||||
if (strlen($drequest->getSymbolicCommit())) { | if ($drequest->getSymbolicCommit() !== null | ||||
&& strlen($drequest->getSymbolicCommit())) { | |||||
$is_commit = true; | $is_commit = true; | ||||
$params['commit'] = $drequest->getSymbolicCommit(); | $params['commit'] = $drequest->getSymbolicCommit(); | ||||
} else { | } else { | ||||
$is_commit = false; | $is_commit = false; | ||||
} | } | ||||
switch ($repository->getVersionControlSystem()) { | switch ($repository->getVersionControlSystem()) { | ||||
case PhabricatorRepositoryType::REPOSITORY_TYPE_SVN: | case PhabricatorRepositoryType::REPOSITORY_TYPE_SVN: | ||||
▲ Show 20 Lines • Show All 79 Lines • Show Last 20 Lines |