mrtopher / dashEE

Control panel dashboard framework for EE CMS.
37 stars 5 forks source link

Function ee() only available on EE 2.6+ #30

Closed johndwells closed 11 years ago

johndwells commented 11 years ago

I've installed dashEE on EE 2.5.5 and was met with a ton of PHP errors all stemming from a call to the undefined function EE().

ee() was introduced in EE 2.6.0, so perhaps you could simply add a helper function that checks if ee() is defined, and if not define it yourself, then your code can carry on as usual...

Thanks! John

mrtopher commented 11 years ago

Yep, I haven't been placing much emphasis on backward compatibility with older versions of EE. I'll look back and tweak if it's not too much trouble.

grovberg commented 11 years ago

Or could you at least update Devot:ee to show 2.6 as the minimum version?

mrtopher commented 11 years ago

I have removed references to EE() in the latest which should resolve this issue for now.