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

format_text() shortcut for NULL input

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.9.5, 2.0
    • Fix Version/s: 2.0.3
    • Component/s: Performance
    • Difficulty:
      Easy
    • Affected Branches:
      MOODLE_19_STABLE, MOODLE_20_STABLE
    • Fixed Branches:
      MOODLE_20_STABLE

      Description

      While looking into MDL-19554, I've noticed that format_text() returns
      immediately if $text is '', but goes through full filtering/caching if
      $text is NULL. Perhaps it can take the same shortcut? TIA.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  5/May/11