supermundano / sage-the-events-calendar

Add The Events Calendar support to Sage 10.
MIT License
12 stars 9 forks source link

error with resource_path function call #6

Closed amakkonen closed 2 years ago

amakkonen commented 2 years ago

Hi,

there's an error in src/TheEventsCalendar.php on line 39 that results in fatal error.

Changing resource_path() to \Roots\resource_path() fixed the error in my case.

cfaria commented 2 years ago

Good catch! Thank you @amakkonen

I'll fix it asap.

EHLOVader commented 2 years ago

This is odd, it didn't cause errors on mine, perhaps it is a version of PHP issue where namespace resolution has become more strict.

Looking at \Roots\resource_path() it is @deprecated so I don't think that is the one that should be used.

It is basically an alias for \resource_path so that should probably be used now.