Updated the code responsible for preventing internal access to certain files

This commit is contained in:
Mark Nelson 2013-04-10 17:17:19 +08:00
parent 31168708bb
commit 8b3954cea7
12 changed files with 14 additions and 14 deletions

View file

@ -15,9 +15,7 @@
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
if (!defined('MOODLE_INTERNAL')) {
die('Direct access to this script is forbidden.'); /// It must be included from a Moodle page
}
defined('MOODLE_INTERNAL') || die('Direct access to this script is forbidden.');
require_once($CFG->dirroot . '/course/moodleform_mod.php');
require_once($CFG->dirroot . '/mod/customcert/lib.php');