Differential D12552 Diff 30169 src/applications/diffusion/controller/DiffusionRepositoryController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diffusion/controller/DiffusionRepositoryController.php
Show First 20 Lines • Show All 345 Lines • ▼ Show 20 Lines | if ($drequest->getBranch() === null) { | ||||
return null; | return null; | ||||
} | } | ||||
$limit = 15; | $limit = 15; | ||||
$branches = $this->callConduitWithDiffusionRequest( | $branches = $this->callConduitWithDiffusionRequest( | ||||
'diffusion.branchquery', | 'diffusion.branchquery', | ||||
array( | array( | ||||
'closed' => false, | |||||
'limit' => $limit + 1, | 'limit' => $limit + 1, | ||||
)); | )); | ||||
if (!$branches) { | if (!$branches) { | ||||
return null; | return null; | ||||
} | } | ||||
$more_branches = (count($branches) > $limit); | $more_branches = (count($branches) > $limit); | ||||
$branches = array_slice($branches, 0, $limit); | $branches = array_slice($branches, 0, $limit); | ||||
▲ Show 20 Lines • Show All 380 Lines • Show Last 20 Lines |