mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-02 01:52:10 +09:00
Fix #632 inconsistent application of view count option
This commit is contained in:
parent
4d22112582
commit
b0ad6b3027
3 changed files with 56 additions and 41 deletions
|
|
@ -700,10 +700,11 @@ class adminAdminController extends admin
|
|||
}
|
||||
|
||||
// Thumbnail settings
|
||||
$args = new stdClass;
|
||||
$args->thumbnail_type = $vars->thumbnail_type === 'ratio' ? 'ratio' : 'crop';
|
||||
$oDocumentModel = getModel('document');
|
||||
$document_config = $oDocumentModel->getDocumentConfig();
|
||||
$document_config->thumbnail_type = $vars->thumbnail_type === 'ratio' ? 'ratio' : 'crop';
|
||||
$oModuleController = getController('module');
|
||||
$oModuleController->insertModuleConfig('document', $args);
|
||||
$oModuleController->insertModuleConfig('document', $document_config);
|
||||
|
||||
// Other settings
|
||||
Rhymix\Framework\Config::set('use_rewrite', $vars->use_rewrite === 'Y');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue