mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-11 21:12:15 +09:00
Fill thumbnail defaults in getDocumentConfig()
This commit is contained in:
parent
740127d83f
commit
01c3f5cf08
1 changed files with 13 additions and 0 deletions
|
|
@ -998,6 +998,19 @@ class DocumentModel extends Document
|
||||||
{
|
{
|
||||||
self::$_config = ModuleModel::getModuleConfig('document') ?: new stdClass;
|
self::$_config = ModuleModel::getModuleConfig('document') ?: new stdClass;
|
||||||
}
|
}
|
||||||
|
if (!isset(self::$_config->thumbnail_target))
|
||||||
|
{
|
||||||
|
self::$_config->thumbnail_target = 'all';
|
||||||
|
}
|
||||||
|
if (!isset(self::$_config->thumbnail_type))
|
||||||
|
{
|
||||||
|
self::$_config->thumbnail_type = 'fill';
|
||||||
|
}
|
||||||
|
if (!isset(self::$_config->thumbnail_quality))
|
||||||
|
{
|
||||||
|
self::$_config->thumbnail_quality = 75;
|
||||||
|
}
|
||||||
|
|
||||||
return self::$_config;
|
return self::$_config;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue