diff --git a/lib/portfolio/caller.php b/lib/portfolio/caller.php
index d5e4d80f258..8c55c24e2e1 100644
--- a/lib/portfolio/caller.php
+++ b/lib/portfolio/caller.php
@@ -17,7 +17,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*
- * @package moodle
+ * @package core
* @subpackage portfolio
* @author Penny Leach
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL
@@ -28,6 +28,8 @@
* See http://docs.moodle.org/en/Development:Adding_a_Portfolio_Button_to_a_page
*/
+defined('MOODLE_INTERNAL') || die();
+
/**
* base class for callers
*
diff --git a/lib/portfolio/constants.php b/lib/portfolio/constants.php
index c1c744af2a4..f7565b5d9fb 100644
--- a/lib/portfolio/constants.php
+++ b/lib/portfolio/constants.php
@@ -17,7 +17,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*
- * @package moodle
+ * @package core
* @subpackage portfolio
* @author Penny Leach
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL
@@ -26,6 +26,8 @@
* This file contains all the defined constants to do with portfolios.
*/
+defined('MOODLE_INTERNAL') || die();
+
// ************************************************** //
// EXPORT STAGE CONSTANTS
// ************************************************** //
diff --git a/lib/portfolio/exceptions.php b/lib/portfolio/exceptions.php
index 28ab057a049..2a4816d18a1 100644
--- a/lib/portfolio/exceptions.php
+++ b/lib/portfolio/exceptions.php
@@ -17,7 +17,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*
- * @package moodle
+ * @package core
* @subpackage portfolio
* @author Penny Leach
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL
@@ -26,6 +26,8 @@
* This file contains all the portfolio exception classes.
*/
+defined('MOODLE_INTERNAL') || die();
+
/**
* top level portfolio exception.
* sometimes caught and rethrown as {@see portfolio_export_exception}
diff --git a/lib/portfolio/exporter.php b/lib/portfolio/exporter.php
index a4c168605ec..2b859faa9f9 100644
--- a/lib/portfolio/exporter.php
+++ b/lib/portfolio/exporter.php
@@ -17,7 +17,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*
- * @package moodle
+ * @package core
* @subpackage portfolio
* @author Penny Leach
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL
@@ -26,6 +26,8 @@
* This file contains the class definition for the exporter object.
*/
+defined('MOODLE_INTERNAL') || die();
+
/**
* The class that handles the various stages of the actual export
* and the communication between the caller and the portfolio plugin.
diff --git a/lib/portfolio/formats.php b/lib/portfolio/formats.php
index 45a63c1c5e2..c297b592316 100644
--- a/lib/portfolio/formats.php
+++ b/lib/portfolio/formats.php
@@ -17,7 +17,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*
- * @package moodle
+ * @package core
* @subpackage portfolio
* @author Penny Leach
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL
@@ -28,6 +28,8 @@
* Because it provides an easy way to do subtyping using php inheritance.
*/
+defined('MOODLE_INTERNAL') || die();
+
/**
* base class to inherit from
* do not use this anywhere in supported_formats
diff --git a/lib/portfolio/formats/leap2a/lib.php b/lib/portfolio/formats/leap2a/lib.php
index ed281bde4e7..0641a460e88 100644
--- a/lib/portfolio/formats/leap2a/lib.php
+++ b/lib/portfolio/formats/leap2a/lib.php
@@ -17,7 +17,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*
- * @package moodle
+ * @package core
* @subpackage portfolio
* @author Penny Leach
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL
@@ -26,6 +26,8 @@
* This file contains the LEAP2a writer used by portfolio_format_leap2a
*/
+defined('MOODLE_INTERNAL') || die();
+
/**
* object to encapsulate the writing of leap2a.
* should be used like:
diff --git a/lib/portfolio/forms.php b/lib/portfolio/forms.php
index 5c7979a98b6..2253d89c987 100644
--- a/lib/portfolio/forms.php
+++ b/lib/portfolio/forms.php
@@ -17,7 +17,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*
- * @package moodle
+ * @package core
* @subpackage portfolio
* @author Penny Leach
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL
@@ -26,6 +26,8 @@
* This file contains all the form definitions used by the portfolio code.
*/
+defined('MOODLE_INTERNAL') || die();
+
// make sure we include moodleform first!
require_once ($CFG->libdir.'/formslib.php');
diff --git a/lib/portfolio/plugin.php b/lib/portfolio/plugin.php
index e5bc3444ca5..786e272880b 100644
--- a/lib/portfolio/plugin.php
+++ b/lib/portfolio/plugin.php
@@ -17,7 +17,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*
- * @package moodle
+ * @package core
* @subpackage portfolio
* @author Penny Leach
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL
@@ -29,6 +29,8 @@
* See http://docs.moodle.org/en/Development:Writing_a_Portfolio_Plugin
*/
+defined('MOODLE_INTERNAL') || die();
+
/**
* the base class for portfolio plugins
* all plugins must subclass this
@@ -114,7 +116,7 @@ abstract class portfolio_plugin_base {
/**
* override this if you are supporting the 'file' type (or a subformat)
- * but have restrictions on mimetypes
+ * but have restrictions on mimetypes
*
* @return boolean
*/