Moodle
  1. Moodle
  2. MDL-29540

Please can we have the new constants from MDL-29401 back-ported to all 2.x branches

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Won't Fix
    • Affects Version/s: 2.0.4, 2.1.1
    • Fix Version/s: None
    • Component/s: Libraries
    • Labels:
      None
    • Testing Instructions:
      Hide

      Make a simple test script that uses optional_param(..., PARAM_COMPONENT) and so on, and make sure it works in 2.0 and 2.1

      Show
      Make a simple test script that uses optional_param(..., PARAM_COMPONENT) and so on, and make sure it works in 2.0 and 2.1
    • Affected Branches:
      MOODLE_20_STABLE, MOODLE_21_STABLE
    • Rank:
      19017

      Description

      For those of us writing third-party plugins, it would be helpful if we could start using the new PARAM_COMPONENT, PARAM_AREA and PARAM_PLUGIN straight away.

      Therefore, please can we these constants defined in 2.0 and 2.1? One option is just to define the constants (make them equal to PARAM_ALNUMEXT or something).

      An alternative would be to also back-port the changes to clean_param.

      Another advantage of this is that we will be less likely to get regressions when people cherry-pick bug fixes from master to the stable branches.

        Issue Links

          Activity

          Hide
          Petr Škoda added a comment -

          branches < 2.3 get only security fixes, sorry, closing.

          Show
          Petr Škoda added a comment - branches < 2.3 get only security fixes, sorry, closing.

            People

            • Votes:
              2 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: