From 98cef39d280c914ac8df74e5c7f049e84375bf26 Mon Sep 17 00:00:00 2001 From: "Eloy Lafuente (stronk7)" Date: Tue, 1 May 2012 01:06:50 +0200 Subject: [PATCH] MDL-32709 book: Add some missing MOODLE_INTERNALs --- mod/book/backup/moodle2/restore_book_stepslib.php | 2 ++ mod/book/tool/exportimscp/db/access.php | 2 ++ mod/book/tool/importhtml/db/access.php | 2 ++ mod/book/tool/print/db/access.php | 2 ++ 4 files changed, 8 insertions(+) diff --git a/mod/book/backup/moodle2/restore_book_stepslib.php b/mod/book/backup/moodle2/restore_book_stepslib.php index 05fbd132d0c..09ee5a0b877 100644 --- a/mod/book/backup/moodle2/restore_book_stepslib.php +++ b/mod/book/backup/moodle2/restore_book_stepslib.php @@ -23,6 +23,8 @@ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ +defined('MOODLE_INTERNAL') || die; + /** * Structure step to restore one book activity */ diff --git a/mod/book/tool/exportimscp/db/access.php b/mod/book/tool/exportimscp/db/access.php index 0d60721cd0c..5a5cb244f39 100644 --- a/mod/book/tool/exportimscp/db/access.php +++ b/mod/book/tool/exportimscp/db/access.php @@ -22,6 +22,8 @@ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ +defined('MOODLE_INTERNAL') || die; + $capabilities = array( 'booktool/exportimscp:export' => array( 'captype' => 'read', diff --git a/mod/book/tool/importhtml/db/access.php b/mod/book/tool/importhtml/db/access.php index 4cc00b17950..d1fb35d5e1a 100644 --- a/mod/book/tool/importhtml/db/access.php +++ b/mod/book/tool/importhtml/db/access.php @@ -22,6 +22,8 @@ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ +defined('MOODLE_INTERNAL') || die; + $capabilities = array( 'booktool/importhtml:import' => array( 'riskbitmask' => RISK_XSS, diff --git a/mod/book/tool/print/db/access.php b/mod/book/tool/print/db/access.php index a4c9371c947..5e5c2b17b86 100644 --- a/mod/book/tool/print/db/access.php +++ b/mod/book/tool/print/db/access.php @@ -22,6 +22,8 @@ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ +defined('MOODLE_INTERNAL') || die; + $capabilities = array( 'booktool/print:print' => array( 'captype' => 'read',