Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diffusion/controller/DiffusionController.php
Show First 20 Lines • Show All 46 Lines • ▼ Show 20 Lines | if ($request->getURIData('callsign') && | ||||
->setRequest($request); | ->setRequest($request); | ||||
} | } | ||||
$this->setDiffusionRequest($drequest); | $this->setDiffusionRequest($drequest); | ||||
} | } | ||||
return $this->processDiffusionRequest($request); | return $this->processDiffusionRequest($request); | ||||
} | } | ||||
protected function loadDiffusionContextForEdit() { | |||||
return $this->loadContext( | |||||
array( | |||||
'edit' => true, | |||||
)); | |||||
} | |||||
protected function loadDiffusionContext() { | protected function loadDiffusionContext() { | ||||
return $this->loadContext(array()); | |||||
} | |||||
private function loadContext(array $options) { | |||||
$request = $this->getRequest(); | $request = $this->getRequest(); | ||||
$viewer = $this->getViewer(); | $viewer = $this->getViewer(); | ||||
$identifier = $request->getURIData('repositoryCallsign'); | $identifier = $request->getURIData('repositoryCallsign'); | ||||
if (!strlen($identifier)) { | if (!strlen($identifier)) { | ||||
$identifier = (int)$request->getURIData('repositoryID'); | $identifier = (int)$request->getURIData('repositoryID'); | ||||
} | } | ||||
$params = array( | $params = $options + array( | ||||
'repository' => $identifier, | 'repository' => $identifier, | ||||
'user' => $viewer, | 'user' => $viewer, | ||||
'blob' => $request->getURIData('dblob'), | 'blob' => $request->getURIData('dblob'), | ||||
'commit' => $request->getURIData('commit'), | 'commit' => $request->getURIData('commit'), | ||||
'path' => $request->getURIData('path'), | 'path' => $request->getURIData('path'), | ||||
'line' => $request->getURIData('line'), | 'line' => $request->getURIData('line'), | ||||
'branch' => $request->getURIData('branch'), | 'branch' => $request->getURIData('branch'), | ||||
'lint' => $request->getStr('lint'), | 'lint' => $request->getStr('lint'), | ||||
▲ Show 20 Lines • Show All 216 Lines • Show Last 20 Lines |