enrol MDL-23117 Implements the other users UI for users with roles in a course but not enrolled.

At the same time this commit introduces a standardised dialogue YUI module to enrol and implements it across the board.
This commit also addresses MDL-23292 and MDL-23319.
This commit is contained in:
Sam Hemelryk
2010-07-16 08:30:06 +00:00
parent ad0ae2610f
commit 6db3eee02b
21 changed files with 1443 additions and 160 deletions
+4
View File
@@ -2573,11 +2573,14 @@ class core_renderer_ajax extends core_renderer {
* @return string A template fragment for a fatal error
*/
public function fatal_error($message, $moreinfourl, $link, $backtrace, $debuginfo = null) {
global $FULLME, $USER;
$e = new stdClass();
$e->error = $message;
$e->stacktrace = NULL;
$e->debuginfo = NULL;
$e->reproductionlink = NULL;
if (!empty($CFG->debug) and $CFG->debug >= DEBUG_DEVELOPER) {
$e->reproductionlink = $link;
if (!empty($debuginfo)) {
$e->debuginfo = $debuginfo;
}
@@ -2585,6 +2588,7 @@ class core_renderer_ajax extends core_renderer {
$e->stacktrace = format_backtrace($backtrace, true);
}
}
@header('Content-type: application/json');
return json_encode($e);
}