sync username when changed in either the default profile or the settings page
This commit is contained in:
parent
8b51ffefc0
commit
9660117c70
4 changed files with 1043 additions and 1027 deletions
2
boot.php
2
boot.php
|
@ -12,7 +12,7 @@ require_once('library/Mobile_Detect/Mobile_Detect.php');
|
||||||
require_once('include/features.php');
|
require_once('include/features.php');
|
||||||
|
|
||||||
define ( 'FRIENDICA_PLATFORM', 'Friendica');
|
define ( 'FRIENDICA_PLATFORM', 'Friendica');
|
||||||
define ( 'FRIENDICA_VERSION', '3.1.1659' );
|
define ( 'FRIENDICA_VERSION', '3.1.1660' );
|
||||||
define ( 'DFRN_PROTOCOL_VERSION', '2.23' );
|
define ( 'DFRN_PROTOCOL_VERSION', '2.23' );
|
||||||
define ( 'DB_UPDATE_VERSION', 1163 );
|
define ( 'DB_UPDATE_VERSION', 1163 );
|
||||||
define ( 'EOL', "<br />\r\n" );
|
define ( 'EOL', "<br />\r\n" );
|
||||||
|
|
|
@ -455,6 +455,10 @@ function profiles_post(&$a) {
|
||||||
dbesc(datetime_convert()),
|
dbesc(datetime_convert()),
|
||||||
intval(local_user())
|
intval(local_user())
|
||||||
);
|
);
|
||||||
|
$r = q("UPDATE `user` set `username` = '%s' where `uid` = %d limit 1",
|
||||||
|
dbesc($name),
|
||||||
|
intval(local_user())
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
if($is_default) {
|
if($is_default) {
|
||||||
|
|
|
@ -489,10 +489,12 @@ function settings_post(&$a) {
|
||||||
|
|
||||||
$r = q("UPDATE `profile`
|
$r = q("UPDATE `profile`
|
||||||
SET `publish` = %d,
|
SET `publish` = %d,
|
||||||
|
`name` = '%s',
|
||||||
`net-publish` = %d,
|
`net-publish` = %d,
|
||||||
`hide-friends` = %d
|
`hide-friends` = %d
|
||||||
WHERE `is-default` = 1 AND `uid` = %d LIMIT 1",
|
WHERE `is-default` = 1 AND `uid` = %d LIMIT 1",
|
||||||
intval($publish),
|
intval($publish),
|
||||||
|
dbesc($username),
|
||||||
intval($net_publish),
|
intval($net_publish),
|
||||||
intval($hide_friends),
|
intval($hide_friends),
|
||||||
intval(local_user())
|
intval(local_user())
|
||||||
|
|
2062
util/messages.po
2062
util/messages.po
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue