Simple CLI call to core_course_category::get() returns null

Re: Simple CLI call to core_course_category::get() returns null

by Dominique Palumbo -
Number of replies: 0
Picture of Particularly helpful Moodlers Picture of Plugin developers
Hi,

the only mistake you do and I suppose you already find it.
It's the _DIR_ variable name it's __DIR__ four underscores not two.

require(__DIR__.'/../../config.php');

Dominique.