Merge pull request #5258 from Quix0r/rewrites/curly-braces-is-result-usage-002-split1
Curly braces, whitespaces and duplicate method invocation fixed
This commit is contained in:
commit
dd1e6dd4a5
9 changed files with 21 additions and 20 deletions
|
@ -1970,6 +1970,7 @@ function is_a_date_arg($s) {
|
||||||
*/
|
*/
|
||||||
function deindent($text, $chr = "[\t ]", $count = NULL) {
|
function deindent($text, $chr = "[\t ]", $count = NULL) {
|
||||||
$lines = explode("\n", $text);
|
$lines = explode("\n", $text);
|
||||||
|
|
||||||
if (is_null($count)) {
|
if (is_null($count)) {
|
||||||
$m = [];
|
$m = [];
|
||||||
$k = 0;
|
$k = 0;
|
||||||
|
|
|
@ -141,6 +141,7 @@ function message_content(App $a)
|
||||||
'$cancel' => L10n::t('Cancel'),
|
'$cancel' => L10n::t('Cancel'),
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Now check how the user responded to the confirmation query
|
// Now check how the user responded to the confirmation query
|
||||||
if ($_REQUEST['canceled']) {
|
if ($_REQUEST['canceled']) {
|
||||||
goaway($_SESSION['return_url']);
|
goaway($_SESSION['return_url']);
|
||||||
|
@ -151,6 +152,7 @@ function message_content(App $a)
|
||||||
if (dba::delete('mail', ['id' => $a->argv[2], 'uid' => local_user()])) {
|
if (dba::delete('mail', ['id' => $a->argv[2], 'uid' => local_user()])) {
|
||||||
info(L10n::t('Message deleted.') . EOL);
|
info(L10n::t('Message deleted.') . EOL);
|
||||||
}
|
}
|
||||||
|
|
||||||
//goaway(System::baseUrl(true) . '/message' );
|
//goaway(System::baseUrl(true) . '/message' );
|
||||||
goaway($_SESSION['return_url']);
|
goaway($_SESSION['return_url']);
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -1231,6 +1231,7 @@ function photos_content(App $a)
|
||||||
*/
|
*/
|
||||||
if (!Config::get('system', 'no_count', false)) {
|
if (!Config::get('system', 'no_count', false)) {
|
||||||
$order_field = defaults($_GET, 'order', '');
|
$order_field = defaults($_GET, 'order', '');
|
||||||
|
|
||||||
if ($order_field === 'posted') {
|
if ($order_field === 'posted') {
|
||||||
$order = 'ASC';
|
$order = 'ASC';
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -83,11 +83,10 @@ server {
|
||||||
# rewrite to front controller as default rule
|
# rewrite to front controller as default rule
|
||||||
location / {
|
location / {
|
||||||
if (!-e $request_filename) {
|
if (!-e $request_filename) {
|
||||||
rewrite ^(.*)$ /index.php?pagename=$1;
|
rewrite ^(.*)$ /index.php?pagename=$1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
# make sure webfinger and other well known services aren't blocked
|
# make sure webfinger and other well known services aren't blocked
|
||||||
# by denying dot files and rewrite request to the front controller
|
# by denying dot files and rewrite request to the front controller
|
||||||
location ^~ /.well-known/ {
|
location ^~ /.well-known/ {
|
||||||
|
|
|
@ -2080,9 +2080,7 @@ class DFRN
|
||||||
'confirm' => $relocate["confirm"], 'notify' => $relocate["notify"],
|
'confirm' => $relocate["confirm"], 'notify' => $relocate["notify"],
|
||||||
'poll' => $relocate["poll"], 'site-pubkey' => $relocate["sitepubkey"]];
|
'poll' => $relocate["poll"], 'site-pubkey' => $relocate["sitepubkey"]];
|
||||||
$condition = ["(`id` = ?) OR (`nurl` = ?)", $importer["id"], normalise_link($old["url"])];
|
$condition = ["(`id` = ?) OR (`nurl` = ?)", $importer["id"], normalise_link($old["url"])];
|
||||||
dba::update('contact', $fields, $condition);
|
|
||||||
|
|
||||||
// @TODO No dba:update here?
|
|
||||||
dba::update('contact', $fields, $condition);
|
dba::update('contact', $fields, $condition);
|
||||||
|
|
||||||
Contact::updateAvatar($relocate["avatar"], $importer["importer_uid"], $importer["id"], true);
|
Contact::updateAvatar($relocate["avatar"], $importer["importer_uid"], $importer["id"], true);
|
||||||
|
|
Loading…
Reference in a new issue