mirror of
https://github.com/moodle/moodle.git
synced 2025-04-20 07:56:06 +02:00
MDL-46814 calendar export: Minor coding tweaks
This commit is contained in:
parent
a008de2a58
commit
0b956a64d8
@ -14,7 +14,7 @@
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
/*
|
||||
/**
|
||||
* The mform for exporting calendar events
|
||||
*
|
||||
* @package core_calendar
|
||||
@ -22,16 +22,13 @@
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
// Always include formslib.
|
||||
if (!defined('MOODLE_INTERNAL')) {
|
||||
die('Direct access to this script is forbidden.'); // It must be included from a Moodle page.
|
||||
}
|
||||
|
||||
require_once($CFG->dirroot.'/lib/formslib.php');
|
||||
|
||||
/**
|
||||
* The mform class for creating and editing a calendar
|
||||
* The mform class for exporting a calendar
|
||||
*
|
||||
* @copyright 2014 Brian Barnes
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
@ -87,4 +84,4 @@ class core_calendar_export_form extends moodleform {
|
||||
$buttons[] = $mform->createElement('submit', 'export', get_string('exportbutton', 'calendar'));
|
||||
$mform->addGroup($buttons);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user