Skip to content

Commit

Permalink
Merge pull request #183 from RRZE-Webteam/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
rvdforst authored Nov 21, 2023
2 parents b8311d0 + 47e5ed5 commit 9761eb1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
6 changes: 4 additions & 2 deletions includes/ICS/Import.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,13 @@ class Import
/**
* getEvents
*
* @param string $url
* @param integer $feedID
* @param boolean $cache
* @param integer $pastDays
* @param integer $limitDays
* @return mixed
*/
public static function getEvents(string $feedID, bool $cache = true, int $pastDays = 365, int $limitDays = 365)
public static function getEvents(int $feedID, bool $cache = true, int $pastDays = 365, int $limitDays = 365)
{
$pastDays = abs($pastDays);
$limitDays = abs($limitDays);
Expand All @@ -46,6 +47,7 @@ public static function getEvents(string $feedID, bool $cache = true, int $pastDa

// Fix URL protocol
$url = get_post_meta($feedID, CalendarFeed::FEED_URL, true);
$url = $url ?: '';
if (strpos($url, 'webcal://') === 0) {
$url = str_replace('webcal://', 'https://', $url);
}
Expand Down
6 changes: 3 additions & 3 deletions rrze-calendar.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Plugin Name: RRZE Calendar
Plugin URI: https://github.com/RRZE-Webteam/rrze-calendar
Description: Import and output of FAU public events.
Version: 2.0.10
Version: 2.0.11
Author: RRZE Webteam
Author URI: https://blogs.fau.de/webworking/
License: GNU General Public License v3.0
Expand All @@ -21,8 +21,8 @@
use RRZE\Calendar\CPT\CalendarFeed;
use RRZE\WP\Plugin;

const RRZE_PHP_VERSION = '8.0';
const RRZE_WP_VERSION = '6.3';
const RRZE_PHP_VERSION = '8.1';
const RRZE_WP_VERSION = '6.4';

// Autoloader
require_once 'vendor/autoload.php';
Expand Down

0 comments on commit 9761eb1

Please sign in to comment.