MDL-19936 backup - tiny problem on encoding of workshop interlinks
authorEloy Lafuente <stronk7@moodle.org>
Fri, 6 Aug 2010 16:05:03 +0000 (16:05 +0000)
committerEloy Lafuente <stronk7@moodle.org>
Fri, 6 Aug 2010 16:05:03 +0000 (16:05 +0000)
mod/workshop/backup/moodle2/backup_workshop_activity_task.class.php

index c4b78a5..2db5901 100644 (file)
@@ -59,11 +59,11 @@ class backup_workshop_activity_task extends backup_activity_task {
 
         // Link to the list of workshops
         $search = "/(" . $base . "\/mod\/workshop\/index.php\?id\=)([0-9]+)/";
-        $result = preg_replace($search, '$@WORKSHOPINDEX*$2@$', $content);
+        $content = preg_replace($search, '$@WORKSHOPINDEX*$2@$', $content);
 
         //Link to workshop view by moduleid
         $search = "/(" . $base . "\/mod\/workshop\/view.php\?id\=)([0-9]+)/";
-        $result= preg_replace($search, '$@WORKSHOPVIEWBYID*$2@$', $result);
+        $content= preg_replace($search, '$@WORKSHOPVIEWBYID*$2@$', $content);
 
         return $content;
     }