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

is_web_crawler should be moved to useragent class

    XMLWordPrintable

    Details

      Description

      We have an is_web_crawler() function in lib/setuplib.php which performs tests on the USER_AGENT. These should really be moved to core_useragent() where similar checks of this kind normally live and are thoroughly unit tested.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  16/Nov/15