message MDL-26433 refactored the constants in messaging

This commit is contained in:
andyjdavis 2011-02-16 15:48:59 +08:00 committed by Andrew
parent 48fe5c6cf9
commit 25bd5c75ab
5 changed files with 63 additions and 72 deletions

View file

@ -27,10 +27,11 @@
require('../config.php');
require('lib.php');
//the same URL params as in 1.9
$userid = required_param('id', PARAM_INT);
$noframesjs = optional_param('noframesjs', 0, PARAM_BOOL);
$params = array('id'=>$userid);
$params = array('user2'=>$userid);
if (!empty($noframesjs)) {
$params['noframesjs'] = $noframesjs;
}