Skip to content

Commit

Permalink
fix: patch ical parser for VFS use
Browse files Browse the repository at this point in the history
  • Loading branch information
themightychris committed Aug 28, 2019
1 parent 646f7f7 commit 4c046fe
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
2 changes: 1 addition & 1 deletion php-classes/Emergence/Meetup/Connector.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
namespace Emergence\Meetup; namespace Emergence\Meetup;


use Cache; use Cache;
use om\IcalParser; use om\Emergence\IcalParser;


class Connector extends \Emergence\Connectors\AbstractConnector class Connector extends \Emergence\Connectors\AbstractConnector
{ {
Expand Down
17 changes: 17 additions & 0 deletions php-classes/om/Emergence/IcalParser.php
Original file line number Original file line Diff line number Diff line change
@@ -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.