Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

Commit

Permalink
Version 3.5.40
Browse files Browse the repository at this point in the history
  • Loading branch information
leofeyer committed Apr 11, 2019
1 parent 36db3b8 commit e38d7e6
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 3 deletions.
2 changes: 1 addition & 1 deletion system/config/constants.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* Core version
*/
define('VERSION', '3.5');
define('BUILD', '39');
define('BUILD', '40');
define('LONG_TERM_SUPPORT', true);


Expand Down
7 changes: 7 additions & 0 deletions system/docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
Contao Open Source CMS changelog
================================

Version 3.5.40 (2019-04-10)
---------------------------

### Fixed
Fix the save callback in the back end password module (see #429).


Version 3.5.39 (2019-04-09)
---------------------------

Expand Down
7 changes: 5 additions & 2 deletions system/modules/core/controllers/BackendPassword.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,16 +83,19 @@ public function run()
// Trigger the save_callback
if (is_array($GLOBALS['TL_DCA']['tl_user']['fields']['password']['save_callback']))
{
$dc = new \DC_Table('tl_user');
$dc->id = $this->User->id;

foreach ($GLOBALS['TL_DCA']['tl_user']['fields']['password']['save_callback'] as $callback)
{
if (is_array($callback))
{
$this->import($callback[0]);
$pw = $this->{$callback[0]}->{$callback[1]}($pw);
$pw = $this->{$callback[0]}->{$callback[1]}($pw, $dc);
}
elseif (is_callable($callback))
{
$pw = $callback($pw);
$pw = $callback($pw, $dc);
}
}
}
Expand Down
1 change: 1 addition & 0 deletions system/modules/repository/classes/RepositorySettings.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

// valid core versions in descending order
define('REPOSITORY_COREVERSIONS',
'30050409,30050409;'. // 3.5.40
'30050399,30050399;'. // 3.5.39
'30050389,30050389;'. // 3.5.38
'30050379,30050379;'. // 3.5.37
Expand Down

0 comments on commit e38d7e6

Please sign in to comment.