Merge branch 'MDL-30260_disable_messages_21' of git://github.com/andyjdavis/moodle...
[moodle.git] / message / discussion.php
bloba588e5eb124039def3414a7ec4ee4f83ce25eb18
1 <?php
3 // This file is part of Moodle - http://moodle.org/
4 //
5 // Moodle is free software: you can redistribute it and/or modify
6 // it under the terms of the GNU General Public License as published by
7 // the Free Software Foundation, either version 3 of the License, or
8 // (at your option) any later version.
9 //
10 // Moodle is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 // GNU General Public License for more details.
15 // You should have received a copy of the GNU General Public License
16 // along with Moodle. If not, see <http://www.gnu.org/licenses/>.
18 /**
19 * This file was replaced by index.php in Moodle 2.0
20 * It now simply redirects to index.php
22 * @author Luis Rodrigues and Martin Dougiamas
23 * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
24 * @package message
27 require(dirname(dirname(__FILE__)) . '/config.php');
28 require_once($CFG->dirroot . '/message/lib.php');
30 //the same URL params as in 1.9
31 $userid = required_param('id', PARAM_INT);
32 $noframesjs = optional_param('noframesjs', 0, PARAM_BOOL);
34 $params = array('user2'=>$userid);
35 if (!empty($noframesjs)) {
36 $params['noframesjs'] = $noframesjs;
38 $url = new moodle_url('/message/index.php', $params);
39 redirect($url);