assignment MDL-22852 changed url to moodle url.
authorAparup Banerjee <nebgor@gmail.com>
Thu, 26 Aug 2010 07:28:16 +0000 (07:28 +0000)
committerAparup Banerjee <nebgor@gmail.com>
Thu, 26 Aug 2010 07:28:16 +0000 (07:28 +0000)
mod/assignment/type/upload/assignment.class.php

index a5d16d3..9574acc 100644 (file)
@@ -756,7 +756,7 @@ class assignment_upload extends assignment_base {
         if ($forcemode!=null) {
             $mode=$forcemode;
         }
-        $returnurl = "submissions.php?id={$this->cm->id}&userid=$userid&mode=$mode&offset=$offset&forcerefresh=1";
+        $returnurl = new moodle_url('/mod/assignment/submissions.php', array('id'=>$this->cm->id, 'userid'=>$userid, 'mode'=>$mode, 'offset'=>$offset, 'forcerefresh'=>1) );
         if (data_submitted()
           and $submission = $this->get_submission($userid)
           and $this->can_unfinalize($submission)