Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diffusion/engine/DiffusionCommitHookEngine.php
Show First 20 Lines • Show All 1,262 Lines • ▼ Show 20 Lines | public function getChangesetsForCommit($identifier) { | ||||
$info = $this->loadChangesetsForCommit($identifier); | $info = $this->loadChangesetsForCommit($identifier); | ||||
list($changesets, $size) = $info; | list($changesets, $size) = $info; | ||||
return $changesets; | return $changesets; | ||||
} | } | ||||
private function rejectOversizedFiles(array $content_updates) { | private function rejectOversizedFiles(array $content_updates) { | ||||
$repository = $this->getRepository(); | $repository = $this->getRepository(); | ||||
// TODO: Allow repositories to be configured for a maximum filesize. | $limit = $repository->getFilesizeLimit(); | ||||
$limit = 0; | |||||
if (!$limit) { | if (!$limit) { | ||||
return; | return; | ||||
} | } | ||||
foreach ($content_updates as $update) { | foreach ($content_updates as $update) { | ||||
$identifier = $update->getRefNew(); | $identifier = $update->getRefNew(); | ||||
$sizes = $this->loadFileSizesForCommit($identifier); | $sizes = $this->loadFileSizesForCommit($identifier); | ||||
▲ Show 20 Lines • Show All 152 Lines • Show Last 20 Lines |