Skip to content

Commit

Permalink
MDL-35990 repository: Added MOODLE_INTERNAL check and removed config …
Browse files Browse the repository at this point in the history
…inclusion
  • Loading branch information
Frederic Massart committed Oct 16, 2012
1 parent c67f1a3 commit e56de3a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion repository/dropbox/locallib.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');

/**
Expand Down
1 change: 1 addition & 0 deletions repository/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/

defined('MOODLE_INTERNAL') || die();
require_once($CFG->libdir . '/filelib.php');
require_once($CFG->libdir . '/formslib.php');

Expand Down

0 comments on commit e56de3a

Please sign in to comment.