Merge branch MDL-29187-master of git://github.com/samhemelryk/moodle
authorAparup Banerjee <aparup@moodle.com>
Tue, 13 Sep 2011 05:52:31 +0000 (13:52 +0800)
committerAparup Banerjee <aparup@moodle.com>
Tue, 13 Sep 2011 05:52:31 +0000 (13:52 +0800)
  - resolved conflict.

1  2 
backup/util/ui/renderer.php
blocks/course_list/block_course_list.php
course/delete.php
course/lib.php
lib/accesslib.php
lib/navigationlib.php
mod/feedback/item/info/lib.php

Simple merge
@@@ -75,9 -74,9 +76,9 @@@ class block_course_list extends block_l
                          $linkcss = $course->visible ? "" : " class=\"dimmed\" ";
  
                          $this->content->items[]="<a $linkcss title=\""
 -                                   . format_string($course->shortname)."\" ".
 +                                   . format_string($course->shortname, true, array('context' => $coursecontext))."\" ".
                                     "href=\"$CFG->wwwroot/course/view.php?id=$course->id\">"
-                                    .$icon. format_string($course->fullname) . "</a>";
+                                    .$icon. format_string($course->fullname, true, array('context' => get_context_instance(CONTEXT_COURSE, $course->id))) . "</a>";
                      }
                  /// If we can update any course of the view all isn't hidden, show the view all courses link
                      if (has_capability('moodle/course:update', get_context_instance(CONTEXT_SYSTEM)) || empty($CFG->block_course_list_hideallcourseslink)) {
      }
  
      $category = $DB->get_record("course_categories", array("id"=>$course->category));
 +    $courseshortname = format_string($course->shortname, true, array('context' => get_context_instance(CONTEXT_COURSE, $course->id)));
+     $categoryname = format_string($category->name, true, array('context' => get_context_instance(CONTEXT_COURSECAT, $category->id)));
  
      $PAGE->navbar->add($stradministration, new moodle_url('/admin/index.php/'));
      $PAGE->navbar->add($strcategories, new moodle_url('/course/index.php'));
-     $PAGE->navbar->add($category->name, new moodle_url('/course/category.php', array('id'=>$course->category)));
+     $PAGE->navbar->add($categoryname, new moodle_url('/course/category.php', array('id'=>$course->category)));
      if (! $delete) {
 -        $strdeletecheck = get_string("deletecheck", "", $course->shortname);
 +        $strdeletecheck = get_string("deletecheck", "", $courseshortname);
          $strdeletecoursecheck = get_string("deletecoursecheck");
  
          $PAGE->navbar->add($strdeletecheck);
diff --cc course/lib.php
Simple merge
Simple merge
Simple merge
Simple merge