Skip to content

Commit

Permalink
Merge pull request #617 from following5/okapi-max-imagesize
Browse files Browse the repository at this point in the history
fix max image upload size for OKAPI
  • Loading branch information
teiling88 committed Sep 19, 2017
2 parents 7e0ae6c + 7c0b652 commit dba9400
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion htdocs/okapi_settings.php
Expand Up @@ -46,7 +46,7 @@ function get_okapi_settings()
'VAR_DIR' => $opt['okapi']['var_dir'],
'IMAGES_DIR' => rtrim($opt['logic']['pictures']['dir'], '/'),
'IMAGES_URL' => rtrim($opt['logic']['pictures']['url'], '/') . '/',
'IMAGE_MAX_UPLOAD_SIZE' => 2 * $opt['logic']['pictures']['maxsize'],
'IMAGE_MAX_UPLOAD_SIZE' => $opt['logic']['pictures']['maxsize'],
'IMAGE_MAX_PIXEL_COUNT' => 786432, # 1024 x 768; TODO: move PICTURE_MAX_LONG_SIDE to settings
'SITE_LOGO' => $opt['page']['absolute_url'] . 'resource2/' . $opt['template']['default']['style'] . '/images/oclogo/oc_logo_alpha3.png',
'OC_NODE_ID' => $opt['logic']['node']['id'],
Expand Down

0 comments on commit dba9400

Please sign in to comment.