This repository was archived by the owner on Nov 3, 2023. It is now read-only.
File tree 4 files changed +14
-3
lines changed
4 files changed +14
-3
lines changed Original file line number Diff line number Diff line change 13
13
* Core version
14
14
*/
15
15
define ('VERSION ' , '3.5 ' );
16
- define ('BUILD ' , '39 ' );
16
+ define ('BUILD ' , '40 ' );
17
17
define ('LONG_TERM_SUPPORT ' , true );
18
18
19
19
Original file line number Diff line number Diff line change 1
1
Contao Open Source CMS changelog
2
2
================================
3
3
4
+ Version 3.5.40 (2019-04-10)
5
+ ---------------------------
6
+
7
+ ### Fixed
8
+ Fix the save callback in the back end password module (see #429 ).
9
+
10
+
4
11
Version 3.5.39 (2019-04-09)
5
12
---------------------------
6
13
Original file line number Diff line number Diff line change @@ -83,16 +83,19 @@ public function run()
83
83
// Trigger the save_callback
84
84
if (is_array ($ GLOBALS ['TL_DCA ' ]['tl_user ' ]['fields ' ]['password ' ]['save_callback ' ]))
85
85
{
86
+ $ dc = new \DC_Table ('tl_user ' );
87
+ $ dc ->id = $ this ->User ->id ;
88
+
86
89
foreach ($ GLOBALS ['TL_DCA ' ]['tl_user ' ]['fields ' ]['password ' ]['save_callback ' ] as $ callback )
87
90
{
88
91
if (is_array ($ callback ))
89
92
{
90
93
$ this ->import ($ callback [0 ]);
91
- $ pw = $ this ->{$ callback [0 ]}->{$ callback [1 ]}($ pw );
94
+ $ pw = $ this ->{$ callback [0 ]}->{$ callback [1 ]}($ pw, $ dc );
92
95
}
93
96
elseif (is_callable ($ callback ))
94
97
{
95
- $ pw = $ callback ($ pw );
98
+ $ pw = $ callback ($ pw, $ dc );
96
99
}
97
100
}
98
101
}
Original file line number Diff line number Diff line change 17
17
18
18
// valid core versions in descending order
19
19
define ('REPOSITORY_COREVERSIONS ' ,
20
+ '30050409,30050409; ' . // 3.5.40
20
21
'30050399,30050399; ' . // 3.5.39
21
22
'30050389,30050389; ' . // 3.5.38
22
23
'30050379,30050379; ' . // 3.5.37
You can’t perform that action at this time.
0 commit comments