Skip to content

Commit

Permalink
[FIX] Settings.
Browse files Browse the repository at this point in the history
  • Loading branch information
Seiger committed May 15, 2023
1 parent 48a4078 commit 084058c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
4 changes: 2 additions & 2 deletions core/factory/settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@
'use_editor' => 1,
'editor_css_path' => '',
'filemanager_path' => '[(base_path)]',
'upload_files' => 'bmp,ico,gif,jpeg,jpg,png,psd,tif,tiff,fla,flv,swf,aac,au,avi,css,cache,doc,docx,gz,gzip,htaccess,htm,html,js,mp3,mp4,mpeg,mpg,ods,odp,odt,pdf,ppt,pptx,rar,tar,tgz,txt,wav,wmv,xls,xlsx,xml,z,zip,JPG,JPEG,PNG,GIF,svg,tpl',
'upload_images' => 'bmp,ico,gif,jpeg,jpg,png,psd,tif,tiff,svg',
'upload_files' => 'bmp,ico,gif,jpeg,jpg,png,psd,tif,tiff,fla,flv,swf,aac,au,avi,css,cache,doc,docx,gz,gzip,htaccess,htm,html,js,mp3,mp4,mpeg,mpg,ods,odp,odt,pdf,ppt,pptx,rar,tar,tgz,txt,wav,wmv,xls,xlsx,xml,z,zip,JPG,JPEG,PNG,GIF,svg,tpl,webp,avif',
'upload_images' => 'bmp,ico,gif,jpeg,jpg,png,psd,tif,tiff,svg,webp,avif',
'upload_media' => 'au,avi,mp3,mp4,mpeg,mpg,wav,wmv',
'upload_maxsize' => '5000000',
'new_file_permissions' => '0644',
Expand Down
6 changes: 3 additions & 3 deletions core/factory/version.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
return [
'version' => '3.2.0 Beta', // Current version number
'release_date' => 'May 10, 2023', // Date of release
'version' => '3.2.0', // Current version number
'release_date' => 'May 15, 2023', // Date of release
'branch' => 'Evolution CMS', // Codebase name
'full_appname' => 'Evolution CMS 3.2.0 Beta (May 10, 2023)'
'full_appname' => 'Evolution CMS 3.2.0 (May 15, 2023)'
];
5 changes: 4 additions & 1 deletion core/includes/define.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,10 @@
}

if (is_cli()) {
define('MODX_CLI', true);
if (!defined('MODX_CLI')) {
define('MODX_CLI', true);
}

if (!(defined('MODX_BASE_PATH') || defined('MODX_BASE_URL'))) {
throw new RuntimeException('Please, define MODX_BASE_PATH and MODX_BASE_URL on cli mode');
}
Expand Down

0 comments on commit 084058c

Please sign in to comment.