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

Phase 2 of deprecation of functions in lib/deprecatedlib.php in 3.1

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.0
    • Fix Version/s: 3.1
    • Component/s: General
    • Labels:
    • Testing Instructions:
      Hide
      1. Do a grep of the following functions:
        • profile_display_badges()
        • useredit_shared_definition_preferences()
        • calendar_normalize_tz()
        • get_user_timezone_offset()
        • get_timezone_offset()
        • get_list_of_timezones()
        • calculate_user_dst_table()
        • dst_changes_for_year()
        • get_timezone_record()
        • test_get_list_of_timezones() in lib/tests/date_legacy_test.php
        • test_get_timezone_offset() in lib/tests/date_legacy_test.php
        • test_get_user_timezone_offset() in lib/tests/date_legacy_test.php

      Make sure they are not used outside lib/deprecatedlib.php or lib/upgrade.txt.

      Show
      Do a grep of the following functions: profile_display_badges() useredit_shared_definition_preferences() calendar_normalize_tz() get_user_timezone_offset() get_timezone_offset() get_list_of_timezones() calculate_user_dst_table() dst_changes_for_year() get_timezone_record() test_get_list_of_timezones() in lib/tests/date_legacy_test.php test_get_timezone_offset() in lib/tests/date_legacy_test.php test_get_user_timezone_offset() in lib/tests/date_legacy_test.php Make sure they are not used outside lib/deprecatedlib.php or lib/upgrade.txt.
    • Affected Branches:
      MOODLE_30_STABLE
    • Fixed Branches:
      MOODLE_31_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-50050-master
    • Sprint:
      3.1 Sprint 6

      Description

      As per https://docs.moodle.org/dev/Deprecation all functions in lib/deprecatedlib.php that were deprecated in 2.9 should be replaced with exceptions in 3.1

      Make sure MDL-50049 is completed, otherwise remove body of functions deprecated earlier if needed

      This includes all functions in lib/deprecatedlib.php that say @deprecated since 2.9

      If any functions from this file do not have this comment but also need to be finally deprecated in 3.1 - please list them in this issue description

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              lameze Simey Lameze
              Reporter:
              marina Marina Glancy
              Peer reviewer:
              cameron1729
              Integrator:
              Dan Poltawski
              Tester:
              Mark Nelson
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                23/May/16