improved docs

This commit is contained in:
Petr Skoda
2010-09-18 10:50:50 +00:00
parent c10244114a
commit 7def9d4345
2 changed files with 2 additions and 3 deletions
+1 -2
View File
@@ -213,8 +213,7 @@ class portfolio_exporter {
}
if (!$this->alreadystolen[$stage] && $url = $this->instance->steal_control($stage)) {
$this->save();
redirect($url);
break;
redirect($url); // does not return
} else {
$this->save();
}
+1 -1
View File
@@ -2501,7 +2501,7 @@ function notice ($message, $link='', $course=NULL) {
* @param moodle_url|string $url A moodle_url to redirect to. Strings are not to be trusted!
* @param string $message The message to display to the user
* @param int $delay The delay before redirecting
* @return void
* @return void - does not return!
*/
function redirect($url, $message='', $delay=-1) {
global $OUTPUT, $PAGE, $SESSION, $CFG;