Skip to content

Commit

Permalink
MDL-23502 oops, die()!
Browse files Browse the repository at this point in the history
  • Loading branch information
skodak committed Jul 31, 2010
1 parent e238202 commit 9779585
Show file tree
Hide file tree
Showing 54 changed files with 54 additions and 54 deletions.
2 changes: 1 addition & 1 deletion enrol/category/db/access.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/

defined('MOODLE_INTERNAL') || die;
defined('MOODLE_INTERNAL') || die();

$capabilities = array(
// marks roles that have category role assignments synchronised to course enrolments
Expand Down
2 changes: 1 addition & 1 deletion enrol/category/db/events.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/

defined('MOODLE_INTERNAL') || die;
defined('MOODLE_INTERNAL') || die();

/* List of handlers */
$handlers = array (
Expand Down
2 changes: 1 addition & 1 deletion enrol/category/db/install.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/

defined('MOODLE_INTERNAL') || die;
defined('MOODLE_INTERNAL') || die();


function xmldb_enrol_category_install() {
Expand Down
2 changes: 1 addition & 1 deletion enrol/category/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/

defined('MOODLE_INTERNAL') || die;
defined('MOODLE_INTERNAL') || die();

/**
* category enrolment plugin implementation.
Expand Down
2 changes: 1 addition & 1 deletion enrol/category/locallib.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/

defined('MOODLE_INTERNAL') || die;
defined('MOODLE_INTERNAL') || die();

/**
* Event handler for category enrolment plugin.
Expand Down
2 changes: 1 addition & 1 deletion enrol/category/settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/

defined('MOODLE_INTERNAL') || die;
defined('MOODLE_INTERNAL') || die();

if ($ADMIN->fulltree) {

Expand Down
2 changes: 1 addition & 1 deletion enrol/category/version.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/

defined('MOODLE_INTERNAL') || die;
defined('MOODLE_INTERNAL') || die();

$plugin->version = 2010061500;
$plugin->cron = 60;
2 changes: 1 addition & 1 deletion enrol/cohort/addinstance_form.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/

defined('MOODLE_INTERNAL') || die;
defined('MOODLE_INTERNAL') || die();

require_once("$CFG->libdir/formslib.php");

Expand Down
2 changes: 1 addition & 1 deletion enrol/cohort/db/access.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/

defined('MOODLE_INTERNAL') || die;
defined('MOODLE_INTERNAL') || die();

$capabilities = array(

Expand Down
2 changes: 1 addition & 1 deletion enrol/cohort/db/events.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/

defined('MOODLE_INTERNAL') || die;
defined('MOODLE_INTERNAL') || die();

/* List of handlers */
$handlers = array (
Expand Down
2 changes: 1 addition & 1 deletion enrol/cohort/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/

defined('MOODLE_INTERNAL') || die;
defined('MOODLE_INTERNAL') || die();

/**
* Cohort enrolment plugin implementation.
Expand Down
2 changes: 1 addition & 1 deletion enrol/cohort/locallib.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/

defined('MOODLE_INTERNAL') || die;
defined('MOODLE_INTERNAL') || die();

/**
* Event handler for cohort enrolment plugin.
Expand Down
2 changes: 1 addition & 1 deletion enrol/cohort/settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/

defined('MOODLE_INTERNAL') || die;
defined('MOODLE_INTERNAL') || die();

if ($ADMIN->fulltree) {

Expand Down
2 changes: 1 addition & 1 deletion enrol/cohort/version.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/

defined('MOODLE_INTERNAL') || die;
defined('MOODLE_INTERNAL') || die();

$plugin->version = 2010073100;
$plugin->cron = 60;
2 changes: 1 addition & 1 deletion enrol/database/db/access.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/

defined('MOODLE_INTERNAL') || die;
defined('MOODLE_INTERNAL') || die();

2 changes: 1 addition & 1 deletion enrol/database/db/install.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/

defined('MOODLE_INTERNAL') || die;
defined('MOODLE_INTERNAL') || die();

function xmldb_enrol_database_install() {
global $CFG, $DB;
Expand Down
2 changes: 1 addition & 1 deletion enrol/database/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/

defined('MOODLE_INTERNAL') || die;
defined('MOODLE_INTERNAL') || die();

/**
* Database enrolment plugin implementation.
Expand Down
2 changes: 1 addition & 1 deletion enrol/database/settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/

defined('MOODLE_INTERNAL') || die;
defined('MOODLE_INTERNAL') || die();

if ($ADMIN->fulltree) {

Expand Down
2 changes: 1 addition & 1 deletion enrol/database/version.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/

defined('MOODLE_INTERNAL') || die;
defined('MOODLE_INTERNAL') || die();

$plugin->version = 2010073100;
//TODO: should we add cron sync?
2 changes: 1 addition & 1 deletion enrol/externallib.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/

defined('MOODLE_INTERNAL') || die;
defined('MOODLE_INTERNAL') || die();

require_once("$CFG->libdir/externallib.php");

Expand Down
2 changes: 1 addition & 1 deletion enrol/flatfile/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/

defined('MOODLE_INTERNAL') || die;
defined('MOODLE_INTERNAL') || die();

/**
* Flatfile enrolment plugin implementation.
Expand Down
2 changes: 1 addition & 1 deletion enrol/flatfile/settings.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
*/

defined('MOODLE_INTERNAL') || die;
defined('MOODLE_INTERNAL') || die();

if ($ADMIN->fulltree) {

Expand Down
2 changes: 1 addition & 1 deletion enrol/flatfile/version.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
*/

defined('MOODLE_INTERNAL') || die;
defined('MOODLE_INTERNAL') || die();

$plugin->version = 2010070800;
$plugin->cron = 60;
2 changes: 1 addition & 1 deletion enrol/guest/db/access.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/

defined('MOODLE_INTERNAL') || die;
defined('MOODLE_INTERNAL') || die();

$capabilities = array(

Expand Down
2 changes: 1 addition & 1 deletion enrol/guest/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/

defined('MOODLE_INTERNAL') || die;
defined('MOODLE_INTERNAL') || die();

class enrol_guest_plugin extends enrol_plugin {

Expand Down
2 changes: 1 addition & 1 deletion enrol/guest/locallib.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/

defined('MOODLE_INTERNAL') || die;
defined('MOODLE_INTERNAL') || die();

require_once("$CFG->libdir/formslib.php");

Expand Down
2 changes: 1 addition & 1 deletion enrol/guest/settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/

defined('MOODLE_INTERNAL') || die;
defined('MOODLE_INTERNAL') || die();

if ($ADMIN->fulltree) {

Expand Down
2 changes: 1 addition & 1 deletion enrol/guest/version.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/

defined('MOODLE_INTERNAL') || die;
defined('MOODLE_INTERNAL') || die();

$plugin->version = 2010061500;
2 changes: 1 addition & 1 deletion enrol/imsenterprise/locallib.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
* @author Eugene Venter
*/

defined('MOODLE_INTERNAL') || die;
defined('MOODLE_INTERNAL') || die();


class imsenterprise_roles {
Expand Down
2 changes: 1 addition & 1 deletion enrol/imsenterprise/settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/

defined('MOODLE_INTERNAL') || die;
defined('MOODLE_INTERNAL') || die();

if ($ADMIN->fulltree) {
require_once('locallib.php');
Expand Down
2 changes: 1 addition & 1 deletion enrol/ldap/settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/

defined('MOODLE_INTERNAL') || die;
defined('MOODLE_INTERNAL') || die();

if ($ADMIN->fulltree) {

Expand Down
2 changes: 1 addition & 1 deletion enrol/ldap/settingslib.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/

defined('MOODLE_INTERNAL') || die;
defined('MOODLE_INTERNAL') || die();

class admin_setting_configtext_trim_lower extends admin_setting_configtext {
/* @var boolean whether to lowercase the value or not before writing in to the db */
Expand Down
2 changes: 1 addition & 1 deletion enrol/manual/db/access.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/

defined('MOODLE_INTERNAL') || die;
defined('MOODLE_INTERNAL') || die();

$capabilities = array(

Expand Down
2 changes: 1 addition & 1 deletion enrol/manual/db/install.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/

defined('MOODLE_INTERNAL') || die;
defined('MOODLE_INTERNAL') || die();

function xmldb_enrol_manual_install() {
global $CFG;
Expand Down
2 changes: 1 addition & 1 deletion enrol/manual/edit_form.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
*/

defined('MOODLE_INTERNAL') || die;
defined('MOODLE_INTERNAL') || die();

require_once($CFG->libdir.'/formslib.php');

Expand Down
2 changes: 1 addition & 1 deletion enrol/manual/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/

defined('MOODLE_INTERNAL') || die;
defined('MOODLE_INTERNAL') || die();

class enrol_manual_plugin extends enrol_plugin {

Expand Down
2 changes: 1 addition & 1 deletion enrol/manual/locallib.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/

defined('MOODLE_INTERNAL') || die;
defined('MOODLE_INTERNAL') || die();

require_once($CFG->dirroot . '/user/selector/lib.php');

Expand Down
2 changes: 1 addition & 1 deletion enrol/manual/settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/

defined('MOODLE_INTERNAL') || die;
defined('MOODLE_INTERNAL') || die();

if ($ADMIN->fulltree) {

Expand Down
2 changes: 1 addition & 1 deletion enrol/manual/version.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/

defined('MOODLE_INTERNAL') || die;
defined('MOODLE_INTERNAL') || die();

$plugin->version = 2010071200;
2 changes: 1 addition & 1 deletion enrol/mnet/addinstance_form.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/

defined('MOODLE_INTERNAL') || die;
defined('MOODLE_INTERNAL') || die();

require_once("$CFG->libdir/formslib.php");

Expand Down
2 changes: 1 addition & 1 deletion enrol/mnet/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/

defined('MOODLE_INTERNAL') || die;
defined('MOODLE_INTERNAL') || die();

/**
* MNet enrolment plugin implementation for Moodle 2.x enrolment framework
Expand Down
2 changes: 1 addition & 1 deletion enrol/mnet/settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/

defined('MOODLE_INTERNAL') || die;
defined('MOODLE_INTERNAL') || die();

if ($ADMIN->fulltree) {

Expand Down
2 changes: 1 addition & 1 deletion enrol/paypal/db/access.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/

defined('MOODLE_INTERNAL') || die;
defined('MOODLE_INTERNAL') || die();

$capabilities = array(

Expand Down
2 changes: 1 addition & 1 deletion enrol/paypal/edit_form.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
*/

defined('MOODLE_INTERNAL') || die;
defined('MOODLE_INTERNAL') || die();

require_once($CFG->libdir.'/formslib.php');

Expand Down
Loading

0 comments on commit 9779585

Please sign in to comment.