Version 4.5.0

This commit is contained in:
Neo committed 2025-12-19 05:51:58 -08:00
1 parent 1a0c7fd3c2
commit f79dcf067a
3791 files changed
+248032 -76372

No files matched your search

+16 -2
View File
@@ -24,7 +24,7 @@ class _Application extends \IPS\Application
public function init()
{
/* Requesting iCal/RSS Subscription, but guests are required to login */
if( \IPS\Request::i()->module == 'calendar' and \IPS\Request::i()->controller == 'view' and in_array( \IPS\Request::i()->do, array( 'rss', 'download' ) ) )
if( \IPS\Request::i()->module == 'calendar' and \IPS\Request::i()->controller == 'view' and \in_array( \IPS\Request::i()->do, array( 'rss', 'download' ) ) )
{
/* Validate RSS/Download key */
if( \IPS\Request::i()->member )
@@ -66,6 +66,7 @@ class _Application extends \IPS\Application
/**
* Latest events RSS
*
* @param \IPS\Member|NULL $member Member to generate feed for
* @return void
* @note There is a hard limit of the most recent 500 events updated
*/
@@ -116,6 +117,7 @@ class _Application extends \IPS\Application
/**
* Latest events RSS
*
* @param \IPS\Member|NULL $member Member to generate feed for
* @return void
*/
public function rss( $member=NULL )
@@ -150,7 +152,7 @@ class _Application extends \IPS\Application
}
/* @note application/rss+xml is not a registered IANA mime-type so we need to stick with text/xml for RSS */
\IPS\Output::i()->sendOutput( $document->asXML(), 200, 'text/xml' );
\IPS\Output::i()->sendOutput( $document->asXML(), 200, 'text/xml', array(), TRUE );
}
/**
@@ -185,4 +187,16 @@ class _Application extends \IPS\Application
'activityTabs' => array()
);
}
/**
* Return an array of specific links to add to the sitemap
*
* @return array
*/
public function sitemapLinks()
{
return array(
\IPS\Http\Url::internal( 'app=calendar&module=calendar&controller=view', 'front', 'calendar' ),
);
}
}