Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
168 commits
Select commit Hold shift + click to select a range
105531e
refactor $modx->sendUnauthorizedPage()
yama Jan 15, 2023
e8f5fa5
refactor $mmdx->outputContent()
yama Jan 15, 2023
a4fa818
refactor $modx->setConditional()
yama Jan 15, 2023
bcd7de3
improved $modx->getConfig()
yama Jan 15, 2023
09aecc6
refactor $modx->getVersionData()
yama Jan 15, 2023
c3eb18a
refactor $modx->runSnippet()
yama Jan 15, 2023
1a933c2
refactor $modx->getChunk()
yama Jan 15, 2023
9c05a4c
refactor $modx->isChunkProcessor()
yama Jan 15, 2023
7e386c1
refactor $modx->parseChunk()
yama Jan 15, 2023
c1d999f
refactor $modx->messageQuit()
yama Jan 15, 2023
e53e5b2
refactor $modx->get_backtrace()
yama Jan 15, 2023
8ed64d4
refactor $modx->getHiddenIdFromAlias()
yama Jan 15, 2023
be342e3
refactor $modx->getIdFromAlias()
yama Jan 15, 2023
32d3e2d
minor fix $modx->atBindInclude()
yama Jan 15, 2023
e824518
refactor header.inc.php
yama Jan 15, 2023
65ec027
refactor db:__construct()
yama Jan 15, 2023
0208131
refactor db::connect()
yama Jan 15, 2023
fa40aa6
refactor db::escape()
yama Jan 15, 2023
f9721ec
fix path bug
Pathologic Mar 11, 2022
d787841
[1.4x] Fix installer for PHP8.1
64j Mar 15, 2022
8308671
fix manager password recovery
Pathologic Mar 20, 2022
38f5995
fix xss
Pathologic Mar 20, 2022
53efd74
fix xss
Pathologic Mar 20, 2022
f6c00de
fix xss
Pathologic Mar 20, 2022
d07f93e
fix xss
Pathologic Mar 20, 2022
7e5c8b3
add editorconfig
Pathologic Mar 20, 2022
0183b66
fix warning
Pathologic Mar 20, 2022
5e97487
fix event log style
Pathologic Mar 24, 2022
8c16882
fix event log date format
Pathologic Mar 24, 2022
948ed3a
fix php 8.1 error
Pathologic Mar 25, 2022
ae404e7
php 8.1
Pathologic Mar 26, 2022
21f8b51
revert php 8.1 fix
Pathologic Mar 27, 2022
d275ada
php 8.1
Pathologic Mar 29, 2022
54c8ac1
php 8.1
Pathologic Mar 30, 2022
7a1bfaa
remove strftime
Pathologic Apr 6, 2022
5608f2f
fix warnings
Pathologic Apr 10, 2022
d06112d
fix save manager error
Pathologic Apr 11, 2022
7978719
fix time format
Pathologic Apr 11, 2022
427a0fd
fix xss
Pathologic Apr 11, 2022
2d0ddc1
Fix auto_menuindex
kivamp Apr 12, 2022
5b88800
remove strange install
0test Apr 15, 2022
e4a76ec
Update dbapi.mysqli.class.inc.php
Dreamer0x01 Apr 28, 2022
377b2fc
fix php 8.1 error
Pathologic Apr 28, 2022
44308b3
update phpthumb
Pathologic May 1, 2022
f1336f1
fix installer to prevent errors in php 8.1
Pathologic May 5, 2022
e7eceac
fix php 8.1
Pathologic May 5, 2022
7be6580
fix #26
Pathologic May 21, 2022
341216a
[1.4x] Fix modx.js
64j May 22, 2022
130eee2
[1.4x] Fix modx.js
64j May 25, 2022
38180da
[1.4x] Fix global tabs
64j Jun 6, 2022
f2d7965
Update mutate_tmplvars.dynamic.php
BBloke Jun 6, 2022
95f4799
Update mutate_tmplvars.dynamic.php
BBloke Jun 6, 2022
9a42511
?? didn't work
BBloke Jun 6, 2022
3d76f87
Update mutate_htmlsnippet.dynamic.php
BBloke Jun 6, 2022
a3062a2
fix php 8.0
BBloke Jun 7, 2022
8fe0fca
Update plugin.filesource.php
BBloke Jun 7, 2022
c85d821
Update mutate_plugin.dynamic.php
BBloke Jun 7, 2022
45b9d1e
Update mutate_templates.dynamic.php
BBloke Jun 7, 2022
08cc492
fix php-8.0
BBloke Jun 7, 2022
7a7f947
Update tab4_manager_settings.inc.php
BBloke Jun 7, 2022
53bdbfd
Update files.dynamic.php
BBloke Jun 7, 2022
88790ca
Update mutate_content.dynamic.php
BBloke Jun 7, 2022
28d9ca3
Update mutate_content.dynamic.php
BBloke Jun 7, 2022
bfcb211
Update mutate_content.dynamic.php
BBloke Jun 7, 2022
2ae9f86
php-8.0 adjustments
BBloke Jun 8, 2022
c7c5942
Update mutate_content.dynamic.php
BBloke Jun 8, 2022
86d58db
fix php8 warnings and some xss
Pathologic Jun 9, 2022
152f4b8
fix php8 warnings
Pathologic Jun 9, 2022
84e32f6
Update search.php
bossloper Jun 9, 2022
9d4579c
add laminas feed reader
Pathologic Jun 10, 2022
f96d719
fix php8 warnings
Pathologic Jun 10, 2022
62a8a06
add parameter to ignore document permissions
Pathologic Jun 10, 2022
c614034
fix xss
Pathologic Jun 10, 2022
3fe844f
fix tv inherit binding
Pathologic Jun 10, 2022
5bd1061
add parameter to ignore document permissions
Pathologic Jun 10, 2022
be5e9d3
remove mootools
Pathologic Jun 12, 2022
719873d
replace laminas to simplepie
Pathologic Jun 12, 2022
3702aca
update updater and fix warnings
Pathologic Jun 13, 2022
c39857e
fix save plugin
Pathologic Jun 13, 2022
0cf72cc
add OnLoadSettings event
Pathologic Jun 13, 2022
57adb29
fix warning
Pathologic Jun 13, 2022
a73218c
fix warning
Pathologic Jun 13, 2022
bf79d59
fix xss
Pathologic Jun 13, 2022
91b2d8f
fix warning
Pathologic Jun 13, 2022
1a75be6
fix warnings
Pathologic Jun 13, 2022
e454d57
fix site unavailable message
Pathologic Jun 13, 2022
b811dee
Update snippet.if.php
BBloke Jun 14, 2022
7de3713
fix warning
Pathologic Jun 14, 2022
802605f
fix #117
Pathologic Jun 14, 2022
aa84c33
fix install
Pathologic Jun 14, 2022
ccd2801
fix warnings
Pathologic Jun 14, 2022
3beec8f
fix warnings
Pathologic Jun 15, 2022
9d55c21
fix #124
Pathologic Jun 20, 2022
ee50807
fix #129 fix #130
Pathologic Jun 22, 2022
14db1db
Update qm.tpl
bossloper Jun 22, 2022
c93bf7d
Update qm.inc.php
bossloper Jun 22, 2022
54a7d0f
[1.4x] Fix modx.js
64j Jun 23, 2022
7074b3e
[1.4x] Fix manager title
64j Jun 23, 2022
a879ffb
fix #132
Pathologic Jun 23, 2022
20a3fc5
1.4.19
Pathologic Jun 24, 2022
2c8d169
update date
Pathologic Jun 24, 2022
a67f842
update languages
Pathologic Jun 24, 2022
37bd468
fix qm
Pathologic Jun 24, 2022
ded38f8
fix warnings
Pathologic Jul 5, 2022
14702ad
fix warning
Pathologic Jul 5, 2022
526056f
fix #138
Pathologic Jul 6, 2022
5f2aa91
refactor document info page
Pathologic Jul 6, 2022
0e79467
fix warning
Pathologic Jul 6, 2022
407dd34
refactor document info page
Pathologic Jul 6, 2022
b6b5d1e
update DocLister
Pathologic Jul 6, 2022
a107c41
fix warnings
Pathologic Jul 6, 2022
c39124b
fix warnings
Pathologic Jul 6, 2022
e475bd1
fix
Pathologic Jul 6, 2022
250c677
update DocLister
Pathologic Jul 8, 2022
cec74f6
fix #144
Pathologic Jul 21, 2022
79ad065
remove strftime
kivamp Aug 9, 2022
bffdb26
fix warning
Pathologic Aug 18, 2022
6786fa8
update htaccess for apache 2.4
Pathologic Aug 20, 2022
64cc532
fix
Pathologic Aug 20, 2022
14c617f
update snippets
Pathologic Aug 21, 2022
fc5ba61
update snippets
Pathologic Aug 21, 2022
3926deb
Update config_check.inc.php
BBloke Aug 27, 2022
b2ce3f7
Update mutate_content.dynamic.php
BBloke Aug 29, 2022
956d2be
Update mutate_content.dynamic.php
Pathologic Aug 29, 2022
68bbea7
Fix date timezone issue
kivamp Sep 1, 2022
a29c134
Change for PHP8
ogumemura Sep 13, 2022
364c7f3
fix: fix z-index for extras installation info
cgehuzi Sep 17, 2022
3a44684
Update document.parser.class.inc.php
BBloke Nov 2, 2022
ee705ab
Update document.parser.class.inc.php
BBloke Nov 3, 2022
d077bb0
update gitattributes
Pathologic Nov 19, 2022
3cdd513
update snippets
Pathologic Nov 19, 2022
0ae9199
fix
Pathologic Nov 19, 2022
84c7e0a
fix #184
64j Nov 28, 2022
e828003
fix warning
Pathologic Nov 29, 2022
efc29f8
disable preview button for new documents
Pathologic Dec 1, 2022
66a3153
fix #190
Pathologic Dec 2, 2022
ea41102
refactor cache sync
Pathologic Dec 6, 2022
63af997
Update class.modxRTEbridge.php
Pathologic Dec 22, 2022
7d44293
Update class.modxRTEbridge.php
Pathologic Dec 22, 2022
db068d4
Update document.parser.class.inc.php
BBloke Dec 22, 2022
e1d3702
Update document.parser.class.inc.php
BBloke Dec 22, 2022
8802578
Update document.parser.class.inc.php
BBloke Dec 22, 2022
b47c23c
refactor PR#201
Pathologic Dec 27, 2022
9d31998
refactor sendmail
Pathologic Jan 1, 2023
96df00e
refactor sendmail
Pathologic Jan 1, 2023
679a097
fix #114
Pathologic Jan 5, 2023
05f329a
fix
Pathologic Jan 5, 2023
23c3457
update year
Pathologic Jan 6, 2023
d3cfc1e
remove unused property
Pathologic Jan 13, 2023
bb6762a
fix php8 warnings
Pathologic Jan 13, 2023
8df7f88
fix #211
Pathologic Jan 13, 2023
71cb0da
update
Pathologic Jan 14, 2023
41a74ad
update .gitignore
yama Jan 15, 2023
7182268
code cleanup class.modxRTEbridge.php
yama Jan 15, 2023
bbbcf3a
code cleanup (white spaces)
yama Jan 15, 2023
0368e3b
minor fix
yama Jan 15, 2023
0792161
Add ukrainian.inc.php
yama Jan 15, 2023
d562ef9
fix lang files
yama Jan 15, 2023
8c276ce
revert
yama Jan 15, 2023
cb35533
update setup.data.sql
yama Jan 15, 2023
88f4963
minor fix dbapi.mysqli.class.inc.php
yama Jan 15, 2023
3f6c32f
update year
yama Jan 15, 2023
6bf1a5e
remove $tmpCache property
yama Jan 16, 2023
f188da1
fix php8 warning
Pathologic Jan 15, 2023
80e0199
Create .htaccess
Pathologic Jan 15, 2023
b55c36a
@imagecreatefrompng fix
0test Jan 16, 2023
de6f6ea
minor fix
yama Jan 17, 2023
84a7faf
fix EVO()->sendRedirect()
yama Jan 22, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
26 changes: 26 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
root = true

[*]
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
indent_style = space
tab_width = 4

[**.js]
tab_width = 4

[**.coffee]
tab_width = 4

[**.cson]
tab_width = 4

[**.json]
tab_width = 4

[**rc]
tab_width = 4

[**php]
tab_width = 4
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.gitattributes export-ignore
.gitignore export-ignore
.tx export-ignore
.github export-ignore
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
!/assets/cache/.htaccess
!/assets/cache/index.html
!/assets/cache/siteManager.php
!/assets/cache/sitePublishing.idx.php
!/assets/cache/images/index.html
!/assets/cache/rss/index.html
!/assets/cache/updater/index.html
Expand Down
9 changes: 7 additions & 2 deletions assets/.thumbs/.htaccess
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
IndexIgnore */*
<Files *.php>
Order Deny,Allow
Deny from all
<ifModule mod_authz_core.c>
Require all denied
</ifModule>
<ifModule !mod_authz_core.c>
order deny,allow
deny from all
</ifModule>
</Files>
10 changes: 8 additions & 2 deletions assets/backup/.htaccess
Original file line number Diff line number Diff line change
@@ -1,2 +1,8 @@
order deny,allow
deny from all
<ifModule mod_authz_core.c>
Require all denied
</ifModule>
<ifModule !mod_authz_core.c>
order deny,allow
deny from all
</ifModule>

7 changes: 7 additions & 0 deletions assets/cache/.htaccess
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<ifModule mod_authz_core.c>
Require all denied
</ifModule>
<ifModule !mod_authz_core.c>
order deny,allow
deny from all
</ifModule>
9 changes: 7 additions & 2 deletions assets/cache/images/.htaccess
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
order deny,allow
allow from all
<ifModule mod_authz_core.c>
Require all granted
</ifModule>
<ifModule !mod_authz_core.c>
order deny,allow
allow from all
</ifModule>
9 changes: 7 additions & 2 deletions assets/cache/images/ht.access
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
order deny,allow
allow from all
<ifModule mod_authz_core.c>
Require all granted
</ifModule>
<ifModule !mod_authz_core.c>
order deny,allow
allow from all
</ifModule>
1 change: 1 addition & 0 deletions assets/cache/sitePublishing.idx.php
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<?php $cacheRefreshTime=0; ?>
9 changes: 7 additions & 2 deletions assets/export/.htaccess
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
IndexIgnore */*
<Files *.php>
Order Deny,Allow
Deny from all
<ifModule mod_authz_core.c>
Require all denied
</ifModule>
<ifModule !mod_authz_core.c>
order deny,allow
deny from all
</ifModule>
</Files>
9 changes: 7 additions & 2 deletions assets/files/.htaccess
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
IndexIgnore */*
<Files *.php>
Order Deny,Allow
Deny from all
<ifModule mod_authz_core.c>
Require all denied
</ifModule>
<ifModule !mod_authz_core.c>
order deny,allow
deny from all
</ifModule>
</Files>
9 changes: 7 additions & 2 deletions assets/images/.htaccess
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
IndexIgnore */*
<Files *.php>
Order Deny,Allow
Deny from all
<ifModule mod_authz_core.c>
Require all denied
</ifModule>
<ifModule !mod_authz_core.c>
order deny,allow
deny from all
</ifModule>
</Files>
9 changes: 7 additions & 2 deletions assets/import/.htaccess
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
IndexIgnore */*
<Files *.php>
Order Deny,Allow
Deny from all
<ifModule mod_authz_core.c>
Require all denied
</ifModule>
<ifModule !mod_authz_core.c>
order deny,allow
deny from all
</ifModule>
</Files>
12 changes: 9 additions & 3 deletions assets/js/.htaccess
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@

IndexIgnore */*
<Files *.php>
Order Deny,Allow
Deny from all
</Files>
<ifModule mod_authz_core.c>
Require all denied
</ifModule>
<ifModule !mod_authz_core.c>
order deny,allow
deny from all
</ifModule>
</Files>
4 changes: 4 additions & 0 deletions assets/js/euiuploader/css/euiuploader.css
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@
}
#euiUploadState .sgrow3 {
text-align: center;
overflow: visible;
display: block;
background: none;
height: auto;
}
#euiUploadState .progress .complete {
color:green;
Expand Down
12 changes: 9 additions & 3 deletions assets/lib/.htaccess
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@

IndexIgnore */*
<Files *.php>
Order Deny,Allow
Deny from all
</Files>
<ifModule mod_authz_core.c>
Require all denied
</ifModule>
<ifModule !mod_authz_core.c>
order deny,allow
deny from all
</ifModule>
</Files>
6 changes: 6 additions & 0 deletions assets/lib/Helpers/Collection.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ public function create(array $data = array())
/**
* @return \ArrayIterator
*/
#[\ReturnTypeWillChange]
public function getIterator()
{
return new \ArrayIterator($this->data);
Expand Down Expand Up @@ -149,6 +150,7 @@ public function add($data, $id = null)
/**
* @return int
*/
#[\ReturnTypeWillChange]
public function count()
{
return count($this->data);
Expand Down Expand Up @@ -259,6 +261,7 @@ public function removeElement($element)
* @param mixed $offset
* @return bool
*/
#[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return $this->containsKey($offset);
Expand All @@ -268,6 +271,7 @@ public function offsetExists($offset)
* @param mixed $offset
* @return mixed|null
*/
#[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return $this->get($offset);
Expand All @@ -278,6 +282,7 @@ public function offsetGet($offset)
* @param mixed $value
* @return Collection
*/
#[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if ($offset !== null) {
Expand All @@ -293,6 +298,7 @@ public function offsetSet($offset, $value)
* @param mixed $offset
* @return mixed|null
*/
#[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
return $this->remove($offset);
Expand Down
8 changes: 8 additions & 0 deletions assets/lib/Helpers/Mailer.php
Original file line number Diff line number Diff line change
Expand Up @@ -252,4 +252,12 @@ public function getCFGDef($param, $default = null)
{
return \APIhelpers::getkey($this->config, $param, $default);
}

/**
* @return MODxMailer
*/
public function getMailProcessor()
{
return $this->mail;
}
}
4 changes: 4 additions & 0 deletions assets/lib/Helpers/PHPThumb.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ class PHPThumb
public function __construct()
{
$this->thumb = new \phpthumb();
$defaultCacheFolder = 'assets/cache';
$this->thumb->config_cache_directory = MODX_BASE_PATH . $defaultCacheFolder;
$this->thumb->config_temp_directory = $defaultCacheFolder;
$this->thumb->config_document_root = MODX_BASE_PATH;
$this->fs = FS::getInstance();
}

Expand Down
7 changes: 4 additions & 3 deletions assets/lib/MODxAPI/modResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -525,13 +525,14 @@ public function save($fire_events = false, $clearCache = false)
}

$this->set('alias', $this->getAlias());

$data = $this->toArray(null, null, null, false);
$this->invokeEvent('OnBeforeDocFormSave', array(
'mode' => $this->newDoc ? "new" : "upd",
'id' => isset($this->id) ? $this->id : '',
'doc' => $this->toArray(),
'doc' => &$data,
'docObj' => $this
), $fire_events);
$this->fromArray($data);

$fld = $this->encodeFields()->toArray(null, null, null, false);
foreach ($this->default_field as $key => $value) {
Expand Down Expand Up @@ -632,7 +633,7 @@ public function save($fire_events = false, $clearCache = false)
$this->invokeEvent('OnDocFormSave', array(
'mode' => $this->mode,
'id' => isset($this->id) ? $this->id : '',
'doc' => $this->toArray(),
'doc' => $this->toArray(null, null, null, false),
'docObj' => $this
), $fire_events);

Expand Down
2 changes: 1 addition & 1 deletion assets/lib/SimpleTab/plugin.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public function __construct($modx, $lang_attribute = 'en')
* @param array $ids
* @param $folder
*/
public function clearFolders($ids = array(), $folder)
public function clearFolders(array $ids, $folder)
{
foreach ($ids as $id) {
$this->fs->rmDir($folder . $id . '/');
Expand Down
34 changes: 16 additions & 18 deletions assets/lib/class.modxRTEbridge.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ public function __construct($editorKey = NULL, $bridgeConfig = array(), $tvOptio
$this->initLang($basePath);

// Get modxRTEbridge-config from child-class
$this->bridgeParams = isset($bridgeConfig['bridgeParams']) ? $bridgeConfig['bridgeParams'] : array();
$this->gSettingsCustom = isset($bridgeConfig['gSettingsCustom']) ? $bridgeConfig['gSettingsCustom'] : array();
$this->bridgeParams = isset($bridgeConfig['bridgeParams']) ? $bridgeConfig['bridgeParams'] : array();
$this->gSettingsCustom = isset($bridgeConfig['gSettingsCustom']) ? $bridgeConfig['gSettingsCustom'] : array();
$this->gSettingsDefaultValues = isset($bridgeConfig['gSettingsDefaultValues']) ? $bridgeConfig['gSettingsDefaultValues'] : array();

// Determine settings from Modx
Expand Down Expand Up @@ -149,17 +149,17 @@ public function __construct($editorKey = NULL, $bridgeConfig = array(), $tvOptio
$this->tvOptions = $tvOptions;

// Set pluginParams
$this->editorKey = $editorKey;
$this->theme = $this->modxParams['theme'] ?? 'base';
$this->pluginParams = $modx->event->params ?? array();
$this->pluginParams['pluginName'] = $modx->event->activePlugin;
$this->pluginParams['editorLabel'] = $bridgeConfig['editorLabel'] ?? 'No editorLabel set for "' . $editorKey . '"';
$this->pluginParams['editorVersion'] = $bridgeConfig['editorVersion'] ?? 'No editorVersion set';
$this->pluginParams['editorLogo'] = $bridgeConfig['editorLogo'] ?? '';
$this->editorKey = $editorKey;
$this->theme = $this->modxParams['theme'] ?? 'base';
$this->pluginParams = $modx->event->params ?? array();
$this->pluginParams['pluginName'] = $modx->event->activePlugin;
$this->pluginParams['editorLabel'] = $bridgeConfig['editorLabel'] ?? 'No editorLabel set for "' . $editorKey . '"';
$this->pluginParams['editorVersion'] = $bridgeConfig['editorVersion'] ?? 'No editorVersion set';
$this->pluginParams['editorLogo'] = $bridgeConfig['editorLogo'] ?? '';
$this->pluginParams['skinsDirectory'] = isset($bridgeConfig['skinsDirectory']) && !empty($bridgeConfig['skinsDirectory']) ? trim($bridgeConfig['skinsDirectory'], "/") . "/" : '';
$this->pluginParams['skinthemeDirectory'] = isset($bridgeConfig['skinthemeDirectory']) && !empty($bridgeConfig['skinthemeDirectory']) ? trim($bridgeConfig['skinthemeDirectory'], "/") . "/" : '';
$this->pluginParams['base_path'] = $basePath;
$this->pluginParams['base_url'] = $baseUrl;
$this->pluginParams['base_path'] = $basePath;
$this->pluginParams['base_url'] = $baseUrl;
}

// Function to set editor-parameters
Expand All @@ -170,12 +170,10 @@ public function set($key, $value, $type = false, $emptyAllowed = false)
$this->themeConfig[$key] = NULL; // Delete Parameter completely from JS-initialization
} else {
if (!isset($this->themeConfig[$key])) $this->themeConfig[$key] = array();
$this->themeConfig[$key]['value'] = $value;
$this->themeConfig[$key]['default'] = !isset($this->themeConfig[$key]['default'])
? $value
: $this->themeConfig[$key]['default'];
$this->themeConfig[$key]['type'] = $type == false ? 'string' : $type;
$this->themeConfig[$key]['empty'] = $emptyAllowed;
$this->themeConfig[$key]['value'] = $value;
$this->themeConfig[$key]['default'] = !isset($this->themeConfig[$key]['default']) ? $value : $this->themeConfig[$key]['default'];
$this->themeConfig[$key]['type'] = $type == false ? 'string' : $type;
$this->themeConfig[$key]['empty'] = $emptyAllowed;
}
}

Expand Down Expand Up @@ -798,7 +796,7 @@ public function getModxSettings()
public function parsePlaceholders($content, $ph)
{
foreach ($ph as $key => $value) {
$content = str_replace('[+' . $key . '+]', $value, $content);
$content = str_replace('[+' . $key . '+]', $value ?? '', $content);
}
return $content;
}
Expand Down
Loading