Skip to content
Permalink
Browse files

fix: patch ical parser for VFS use

  • Loading branch information...
themightychris committed Aug 28, 2019
1 parent 646f7f7 commit 4c046fe109b29c9e934f16683daeb603c27e997f
Showing with 18 additions and 1 deletion.
  1. +1 −1 php-classes/Emergence/Meetup/Connector.php
  2. +17 −0 php-classes/om/Emergence/IcalParser.php
@@ -3,7 +3,7 @@
namespace Emergence\Meetup;
use Cache;
use om\IcalParser;
use om\Emergence\IcalParser;
class Connector extends \Emergence\Connectors\AbstractConnector
{
@@ -0,0 +1,17 @@
<?php
namespace om\Emergence;
use Site;
/**
* Replace constructor to load table from VFS instead of local path
*/
class IcalParser extends \om\IcalParser
{
public function __construct()
{
$node = Site::resolvePath('php-classes/om/WindowsTimezones.php');
$this->windowsTimezones = require($node->RealPath); // load Windows timezones from separate file
}
}

0 comments on commit 4c046fe

Please sign in to comment.
You can’t perform that action at this time.