mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-16 14:33:14 +00:00
rename is_downloable to isDownloable
Change Functional to unit test
This commit is contained in:
@@ -85,11 +85,10 @@ class record_exportElement extends record_adapter
|
||||
|
||||
$sbas_id = phrasea::sbasFromBas($this->app, $this->get_base_id());
|
||||
|
||||
$subdefgroups = $this->app->findDataboxById($sbas_id)->get_subdef_structure();
|
||||
|
||||
/** @var databox_subdef[] $subdefs */
|
||||
$subdefs = [];
|
||||
|
||||
foreach ($subdefgroups as $subdef_type => $subdefs_obj) {
|
||||
foreach ($this->app->findDataboxById($sbas_id)->get_subdef_structure() as $subdef_type => $subdefs_obj) {
|
||||
if ($subdef_type == $this->get_type()) {
|
||||
$subdefs = $subdefs_obj;
|
||||
break;
|
||||
@@ -173,7 +172,7 @@ class record_exportElement extends record_adapter
|
||||
|
||||
$downloadable[$name] = false;
|
||||
|
||||
$downloadable_settings = $subdef->is_downloadable();
|
||||
$downloadable_settings = $subdef->isDownloadable();
|
||||
|
||||
if (! $downloadable_settings || $go_dl[$class] === false) {
|
||||
continue;
|
||||
|
Reference in New Issue
Block a user