* Fixed bug in pull request #392 which overwrote user specified
input for logged in authors with an empty realname (wrong array key name) and deleted all existing text input
This commit is contained in:
parent
0bdae3b18c
commit
775b71134c
docs
include
templates
@ -1,6 +1,10 @@
|
|||||||
Version 2.x.x (major) ()
|
Version 2.x.x (major) ()
|
||||||
------------------------------------------------------------------------
|
------------------------------------------------------------------------
|
||||||
|
|
||||||
|
* Fixed bug in pull request #392 which overwrote user specified
|
||||||
|
input for logged in authors with an empty realname (wrong array
|
||||||
|
key name) and deleted all existing text input
|
||||||
|
|
||||||
* Add backend_view_entry hook, that is executed for every entry
|
* Add backend_view_entry hook, that is executed for every entry
|
||||||
in the backend entry list
|
in the backend entry list
|
||||||
|
|
||||||
|
@ -1239,11 +1239,14 @@ function serendipity_printEntries($entries, $extended = 0, $preview = false, $sm
|
|||||||
'is_comment_moderate' => (isset($serendipity['GET']['csuccess']) && $serendipity['GET']['csuccess'] == 'moderate' ? true: false)
|
'is_comment_moderate' => (isset($serendipity['GET']['csuccess']) && $serendipity['GET']['csuccess'] == 'moderate' ? true: false)
|
||||||
);
|
);
|
||||||
|
|
||||||
if ($serendipity['serendipityAuthedUser'] === true && !isset($serendipity['POST']['preview'])) {
|
if ($serendipity['serendipityAuthedUser'] === true && !isset($serendipity['POST']['preview'])) {
|
||||||
$userData = array();
|
$userData = $serendipity['POST'];
|
||||||
$userData['name'] = $serendipity['realname'];
|
if (empty($userData['name'])) {
|
||||||
$userData['email'] = $serendipity['email'];
|
$userData['name'] = $serendipity['serendipityRealname'];
|
||||||
$userData['url'] = '';
|
}
|
||||||
|
if (empty($userData['email'])) {
|
||||||
|
$userData['email'] = $serendipity['email'];
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
$userData = $serendipity['POST'];
|
$userData = $serendipity['POST'];
|
||||||
}
|
}
|
||||||
|
@ -425,7 +425,6 @@ function serendipity_smarty_showCommentForm($params, &$smarty) {
|
|||||||
$params['moderate_comments'] = serendipity_db_bool($params['entry']['moderate_comments']);
|
$params['moderate_comments'] = serendipity_db_bool($params['entry']['moderate_comments']);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
$comment_add_data = array(
|
$comment_add_data = array(
|
||||||
'comments_messagestack' => (isset($serendipity['messagestack']['comments']) ? (array)$serendipity['messagestack']['comments'] : array()),
|
'comments_messagestack' => (isset($serendipity['messagestack']['comments']) ? (array)$serendipity['messagestack']['comments'] : array()),
|
||||||
'is_comment_added' => (isset($serendipity['GET']['csuccess']) && $serendipity['GET']['csuccess'] == 'true' ? true: false),
|
'is_comment_added' => (isset($serendipity['GET']['csuccess']) && $serendipity['GET']['csuccess'] == 'true' ? true: false),
|
||||||
|
4
templates/2k11/legal.txt
Normal file
4
templates/2k11/legal.txt
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
TODO: (Provide information on used javascripts, possible cookie, where data is
|
||||||
|
transferred to)
|
||||||
|
|
||||||
|
|
2
templates/bulletproof/legal.txt
Normal file
2
templates/bulletproof/legal.txt
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
If custom javascripts are inserted, make sure to mention them in your GDPR /
|
||||||
|
DSGVO legal notice
|
2
templates/clean-blog/legal.txt
Normal file
2
templates/clean-blog/legal.txt
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
TODO: (Provide information on used javascripts, possible cookie, where data is
|
||||||
|
transferred to)
|
4
templates/next/legal.txt
Normal file
4
templates/next/legal.txt
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
TODO: (Provide information on used javascripts, possible cookie, where data is
|
||||||
|
transferred to)
|
||||||
|
|
||||||
|
|
4
templates/skeleton/legal.txt
Normal file
4
templates/skeleton/legal.txt
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
TODO: (Provide information on used javascripts, possible cookie, where data is
|
||||||
|
transferred to)
|
||||||
|
|
||||||
|
|
4
templates/timeline/legal.txt
Normal file
4
templates/timeline/legal.txt
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
TODO: (Provide information on used javascripts, possible cookie, where data is
|
||||||
|
transferred to)
|
||||||
|
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user