General developer forum

require_login($course) not working in local plugin

 
Picture of Sam Chaffee
Re: require_login($course) not working in local plugin
Core developers

Hi,

Hard to tell exactly what is going on without seeing some other code, but it looks like $mbaentrepreneurshipsettings is a string: 

$mbaentrepreneurshipsettings = get_string('mbaentrepreneurshipsettings', 'local_mbaentrepreneurship');

My guess is that when you hit index.php that make_active() code isn't even getting called. Also thinking that what is meant for that line is this:

$mbaentrepreneurship->make_active();

That uses the navigation_node rather than the string, which is the object with the make_active method.

Good luck!

 
Average of ratings: -