Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-22399

Links to logs are no longer shown in Moodle 2 navigation

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.0
    • Component/s: Navigation
    • Labels:
      None
    • Affected Branches:
      MOODLE_20_STABLE
    • Fixed Branches:
      MOODLE_20_STABLE

      Description

      In Moodle 1.x, we had links like this that appeared to teachers (those with 'coursereport/log:view') at the top of every activity page:

      eg http://moodle.org/course/report/log/index.php?chooselog=1&user=0&date=0&id=5&modid=46

      The original code snippet is in weblib.php navmenu():

          if ($selectmod and has_capability('coursereport/log:view', $context)) {
              $logstext = get_string('alllogs');
              $logslink = '<li>'."\n".'<a title="'.$logstext.'" '.
                          $CFG->frametarget.' onclick="this.target=\''.$CFG->framename.'\';"'.' href="'.
                          $CFG->wwwroot.'/course/report/log/index.php?chooselog=1&amp;user=0&amp;date=0&amp;id='.
                             $course->id.'&amp;modid='.$selectmod->id.'">'.
                          '<img class="icon log" src="'.$CFG->pixpath.'/i/log.gif" alt="'.$logstext.'" /></a>'."\n".'</li>'

      Can you add this to the activity settings menu whenever we are in an activity? Just call it "Logs" probably.

      Thanks!

        Attachments

          Activity

            People

            Assignee:
            samhemelryk Sam Hemelryk
            Reporter:
            dougiamas Martin Dougiamas
            Tester:
            Nobody
            Participants:
            Component watchers:
            Jake Dallimore, Jun Pataleta
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              24/Nov/10