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

Tidy hack in blog/lib.php line 353 [CONTEXT_USER+1] vers 8.1 20141113

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.8.1
    • Fix Version/s: None
    • Component/s: Blog
    • Labels:
    • Affected Branches:
      MOODLE_28_STABLE

      Description

      moodle/blog/lib.php line 353 [CONTEXT_USER+1]
      moodle 8.1 build 20141113

      ==============
      function blog_get_all_options(moodle_page $page, stdClass $userid = null)

      // ===== removed a bunch of code ====

      if ($user !== null and !isguestuser($user)) {
      // Load for the requested user.
      $options[CONTEXT_USER+1] = blog_get_options_for_user($user);
      )

      ================
      the +1 caught me off guard, i was doing a search in all files for "CONTEXT_" to see uses of it. and i only saw changes in "test doings" never a regular function. let alone a + anything.

      this maybe just a "noob" huh? and not an actual bug. but i honestly do not know. i am not familiar enough with moodle code let alone the blog code.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              boggen Ryan Sanders
              Participants:
              Component watchers:
              Adrian Greeve, Mihail Geshoski, Peter Dias
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: