Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6a32262
)
quiz MDL-24760 recent fix quiz preview/review by teacher.
author
Tim Hunt
<T.J.Hunt@open.ac.uk>
Fri, 22 Oct 2010 17:24:09 +0000
(17:24 +0000)
committer
Tim Hunt
<T.J.Hunt@open.ac.uk>
Fri, 22 Oct 2010 17:24:09 +0000
(17:24 +0000)
mod/quiz/attemptlib.php
patch
|
blob
|
blame
|
history
diff --git
a/mod/quiz/attemptlib.php
b/mod/quiz/attemptlib.php
index
6970058
..
b830ca2
100644
(file)
--- a/
mod/quiz/attemptlib.php
+++ b/
mod/quiz/attemptlib.php
@@
-813,8
+813,11
@@
class quiz_attempt extends quiz {
} else {
$options = $this->get_render_options($id);
}
+ if ($thispageurl instanceof moodle_url) {
+ $thispageurl = $thispageurl->out(false);
+ }
if ($thispageurl) {
- $this->quiz->thispageurl = str_replace($CFG->wwwroot, '', $thispageurl
->out(false)
);
+ $this->quiz->thispageurl = str_replace($CFG->wwwroot, '', $thispageurl);
} else {
unset($thispageurl);
}