forked from GNUsocial/gnu-social
Fix error in log msg format specifier
This commit is contained in:
parent
0a922e0ba4
commit
4c4fbd006d
@ -196,7 +196,7 @@ function broadcast_oauth($notice, $flink) {
|
|||||||
|
|
||||||
$errmsg = sprintf('cURL error trying to send notice to Twitter ' .
|
$errmsg = sprintf('cURL error trying to send notice to Twitter ' .
|
||||||
'for user %1$s (user id: %2$s) - ' .
|
'for user %1$s (user id: %2$s) - ' .
|
||||||
'code: %3$s message: $4$s.',
|
'code: %3$s message: %4$s.',
|
||||||
$user->nickname, $user->id,
|
$user->nickname, $user->id,
|
||||||
$e->getCode(), $e->getMessage());
|
$e->getCode(), $e->getMessage());
|
||||||
common_log(LOG_WARNING, $errmsg);
|
common_log(LOG_WARNING, $errmsg);
|
||||||
@ -254,7 +254,7 @@ function broadcast_basicauth($notice, $flink)
|
|||||||
|
|
||||||
$errmsg = sprintf('cURL error trying to send notice to Twitter ' .
|
$errmsg = sprintf('cURL error trying to send notice to Twitter ' .
|
||||||
'for user %1$s (user id: %2$s) - ' .
|
'for user %1$s (user id: %2$s) - ' .
|
||||||
'code: %3$s message: $4$s.',
|
'code: %3$s message: %4$s.',
|
||||||
$user->nickname, $user->id,
|
$user->nickname, $user->id,
|
||||||
$e->getCode(), $e->getMessage());
|
$e->getCode(), $e->getMessage());
|
||||||
common_log(LOG_WARNING, $errmsg);
|
common_log(LOG_WARNING, $errmsg);
|
||||||
|
Loading…
Reference in New Issue
Block a user