MDL-35990 repository: Added MOODLE_INTERNAL check and removed config inclusion

This commit is contained in:
Frederic Massart 2012-10-16 14:01:29 +08:00
parent c67f1a342c
commit e56de3a4d1
2 changed files with 2 additions and 1 deletions

View file

@ -25,7 +25,7 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
require_once(dirname(dirname(dirname(__FILE__))).'/config.php');
defined('MOODLE_INTERNAL') || die();
require_once($CFG->libdir.'/oauthlib.php');
/**