mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-17 05:48:49 +00:00
[blogger]:
- ops, curly brace in new line in function/method declaration - proper way for x() replacement
This commit is contained in:
parent
52f129d8a4
commit
21b5de3ebb
1 changed files with 3 additions and 5 deletions
|
@ -37,7 +37,8 @@ function blogger_uninstall()
|
|||
}
|
||||
|
||||
|
||||
function blogger_jot_nets(App $a, &$b) {
|
||||
function blogger_jot_nets(App $a, &$b)
|
||||
{
|
||||
if (!local_user()) {
|
||||
return;
|
||||
}
|
||||
|
@ -118,7 +119,7 @@ function blogger_settings(App $a, &$s)
|
|||
|
||||
function blogger_settings_post(App $a, array &$b)
|
||||
{
|
||||
if (isset($_POST['blogger-submit'])) {
|
||||
if (!empty($_POST['blogger-submit'])) {
|
||||
PConfig::set(local_user(), 'blogger', 'post', intval($_POST['blogger']));
|
||||
PConfig::set(local_user(), 'blogger', 'post_by_default', intval($_POST['bl_bydefault']));
|
||||
PConfig::set(local_user(), 'blogger', 'bl_username', trim($_POST['bl_username']));
|
||||
|
@ -162,9 +163,6 @@ function blogger_post_local(App $a, array &$b)
|
|||
$b['postopts'] .= 'blogger';
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function blogger_send(App $a, array &$b)
|
||||
{
|
||||
if ($b['deleted'] || $b['private'] || ($b['created'] !== $b['edited'])) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue