mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 09:26:35 +02:00
Merge branch 'MDL-41026-master' of git://github.com/ankitagarwal/moodle
This commit is contained in:
commit
be15d38b79
1 changed files with 2 additions and 2 deletions
|
@ -226,7 +226,7 @@ class core_notes_external extends external_api {
|
||||||
global $CFG;
|
global $CFG;
|
||||||
require_once($CFG->dirroot . "/notes/lib.php");
|
require_once($CFG->dirroot . "/notes/lib.php");
|
||||||
|
|
||||||
$params = self::validate_parameters(self::delete_notes_parameters(), $notes);
|
$params = self::validate_parameters(self::delete_notes_parameters(), array('notes' => $notes));
|
||||||
|
|
||||||
// Check if note system is enabled.
|
// Check if note system is enabled.
|
||||||
if (!$CFG->enablenotes) {
|
if (!$CFG->enablenotes) {
|
||||||
|
@ -295,7 +295,7 @@ class core_notes_external extends external_api {
|
||||||
global $CFG;
|
global $CFG;
|
||||||
require_once($CFG->dirroot . "/notes/lib.php");
|
require_once($CFG->dirroot . "/notes/lib.php");
|
||||||
|
|
||||||
$params = self::validate_parameters(self::get_notes_parameters(), $notes);
|
$params = self::validate_parameters(self::get_notes_parameters(), array('notes' => $notes));
|
||||||
// Check if note system is enabled.
|
// Check if note system is enabled.
|
||||||
if (!$CFG->enablenotes) {
|
if (!$CFG->enablenotes) {
|
||||||
throw new moodle_exception('notesdisabled', 'notes');
|
throw new moodle_exception('notesdisabled', 'notes');
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue