mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-11-29 07:13:17 +00:00
Merge pull request #312 from annando/1509-pumpio-sync
Only execute the sync if the pumpio plugin is enabled
This commit is contained in:
commit
f847ffbf9d
1 changed files with 6 additions and 0 deletions
|
@ -604,6 +604,12 @@ function pumpio_action(&$a, $uid, $uri, $action, $content = "") {
|
||||||
}
|
}
|
||||||
|
|
||||||
function pumpio_sync(&$a) {
|
function pumpio_sync(&$a) {
|
||||||
|
$r = q("SELECT * FROM `addon` WHERE `installed` = 1 AND `name` = 'pumpio'",
|
||||||
|
$plugin);
|
||||||
|
|
||||||
|
if (!count($r))
|
||||||
|
return;
|
||||||
|
|
||||||
$last = get_config('pumpio','last_poll');
|
$last = get_config('pumpio','last_poll');
|
||||||
|
|
||||||
$poll_interval = intval(get_config('pumpio','poll_interval'));
|
$poll_interval = intval(get_config('pumpio','poll_interval'));
|
||||||
|
|
Loading…
Reference in a new issue