mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-12 01:54:26 +02:00
Remove unused code in mod/
- Remove commented code - Remove unused/immediately overwritten variables - Remove extraneous parameters - Remove unreachable code
This commit is contained in:
parent
4a95ca280d
commit
dbc6eb5422
34 changed files with 32 additions and 173 deletions
|
@ -367,7 +367,7 @@ function settings_post(App $a)
|
|||
}
|
||||
Theme::install($theme);
|
||||
|
||||
$r = q("UPDATE `user` SET `theme` = '%s' WHERE `uid` = %d",
|
||||
q("UPDATE `user` SET `theme` = '%s' WHERE `uid` = %d",
|
||||
DBA::escape($theme),
|
||||
intval(local_user())
|
||||
);
|
||||
|
@ -484,8 +484,6 @@ function settings_post(App $a)
|
|||
$page_flags = Contact::PAGE_COMMUNITY;
|
||||
}
|
||||
|
||||
$email_changed = false;
|
||||
|
||||
$err = '';
|
||||
|
||||
if ($username != $a->user['username']) {
|
||||
|
@ -498,7 +496,6 @@ function settings_post(App $a)
|
|||
}
|
||||
|
||||
if ($email != $a->user['email']) {
|
||||
$email_changed = true;
|
||||
// check for the correct password
|
||||
if (!User::authenticate(intval(local_user()), $_POST['mpassword'])) {
|
||||
$err .= L10n::t('Wrong Password') . EOL;
|
||||
|
@ -611,7 +608,7 @@ function settings_post(App $a)
|
|||
// clear session language
|
||||
unset($_SESSION['language']);
|
||||
|
||||
$r = q("UPDATE `profile`
|
||||
q("UPDATE `profile`
|
||||
SET `publish` = %d,
|
||||
`name` = '%s',
|
||||
`net-publish` = %d,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue