Permalink
Browse files

MDL-15413 Added some code to stop access to this page directly

1 parent 6e6f33e commit 8fd3d3850916092e3c55a2049bfb3434f9c0a611 moodler committed Jun 27, 2008
Showing with 4 additions and 0 deletions.
  1. +4 −0 blog/blogpage.php
View
@@ -1,5 +1,9 @@
<?php // $Id$
+if (!defined('MOODLE_INTERNAL')) {
+ die('Direct access to this script is forbidden.'); /// It must be included from a Moodle page
+}
+
/**
* Definition of blog page type.
*/

0 comments on commit 8fd3d38

Please sign in to comment.