mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
mod-survey MDL-20262 Upgraded survey module in the following ways
* Upgraded legacy code to use PAGE and OUTPUT methods * Added integration with the new navigation blocks * Fixed up several bugs within the download script
This commit is contained in:
parent
785669995e
commit
a5cb6242ae
6 changed files with 463 additions and 240 deletions
|
@ -1,4 +1,28 @@
|
|||
<?php // $Id$
|
||||
<?php
|
||||
|
||||
// This file is part of Moodle - http://moodle.org/
|
||||
//
|
||||
// Moodle is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// Moodle is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
/**
|
||||
* This file is responsible for saving the results of a users survey and displaying
|
||||
* the final message.
|
||||
*
|
||||
* @package mod-survey
|
||||
* @copyright 1999 onwards Martin Dougiamas {@link http://moodle.com}
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
|
||||
require_once('../../config.php');
|
||||
require_once('lib.php');
|
||||
|
@ -20,6 +44,7 @@
|
|||
print_error('coursemisconf');
|
||||
}
|
||||
|
||||
$PAGE->set_url(new moodle_url($CFG->wwwroot.'/mod/survey/save.php', array('id'=>$id)));
|
||||
require_login($course->id, false, $cm);
|
||||
|
||||
$context = get_context_instance(CONTEXT_MODULE, $cm->id);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue