Unneeded variable removed
This commit is contained in:
parent
5a6887fb2e
commit
baea99dee6
|
@ -37,8 +37,6 @@ class NodeInfo120 extends BaseModule
|
||||||
{
|
{
|
||||||
$config = DI::config();
|
$config = DI::config();
|
||||||
|
|
||||||
$imap = (function_exists('imap_open') && !$config->get('system', 'imap_disabled') && !$config->get('system', 'dfrn_only'));
|
|
||||||
|
|
||||||
$nodeinfo = [
|
$nodeinfo = [
|
||||||
'version' => '2.0',
|
'version' => '2.0',
|
||||||
'software' => [
|
'software' => [
|
||||||
|
@ -74,7 +72,7 @@ class NodeInfo120 extends BaseModule
|
||||||
$nodeinfo['services']['inbound'][] = 'rss2.0';
|
$nodeinfo['services']['inbound'][] = 'rss2.0';
|
||||||
$nodeinfo['services']['outbound'][] = 'atom1.0';
|
$nodeinfo['services']['outbound'][] = 'atom1.0';
|
||||||
|
|
||||||
if ($imap) {
|
if (function_exists('imap_open') && !$config->get('system', 'imap_disabled') && !$config->get('system', 'dfrn_only')) {
|
||||||
$nodeinfo['services']['inbound'][] = 'imap';
|
$nodeinfo['services']['inbound'][] = 'imap';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -37,8 +37,6 @@ class NodeInfo210 extends BaseModule
|
||||||
{
|
{
|
||||||
$config = DI::config();
|
$config = DI::config();
|
||||||
|
|
||||||
$imap = (function_exists('imap_open') && !$config->get('system', 'imap_disabled') && !$config->get('system', 'dfrn_only'));
|
|
||||||
|
|
||||||
$nodeinfo = [
|
$nodeinfo = [
|
||||||
'version' => '1.0',
|
'version' => '1.0',
|
||||||
'server' => [
|
'server' => [
|
||||||
|
@ -74,7 +72,7 @@ class NodeInfo210 extends BaseModule
|
||||||
$nodeinfo['services']['inbound'][] = 'rss2.0';
|
$nodeinfo['services']['inbound'][] = 'rss2.0';
|
||||||
$nodeinfo['services']['outbound'][] = 'atom1.0';
|
$nodeinfo['services']['outbound'][] = 'atom1.0';
|
||||||
|
|
||||||
if ($imap) {
|
if (function_exists('imap_open') && !$config->get('system', 'imap_disabled') && !$config->get('system', 'dfrn_only')) {
|
||||||
$nodeinfo['services']['inbound'][] = 'imap';
|
$nodeinfo['services']['inbound'][] = 'imap';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue