expressodev / rsvp

RSVP add-on for ExpressionEngine
Other
19 stars 8 forks source link

EE 2.6 compatibility #2

Open tciny opened 11 years ago

tciny commented 11 years ago

Attempting to install the module in EE 2.6 yields the following error:

A PHP Error was encountered Severity: Notice Message: Undefined property: Addons_modules::$channel_model Filename: rsvp/mcp.rsvp.php Line Number: 105

Fatal error: Call to a member function get_channel_info() on a non-object in /var/www/system/expressionengine/third_party/rsvp/mcp.rsvp.php on line 105

amacneil commented 11 years ago

Can you try changing line 29 of mcp.rsvp.php from

$this->EE->load->model('rsvp_model');

to

$this->EE->load->model(array('rsvp_model', 'channel_model'));