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

Remove use of 'true' and 'false' in db/services.php

    XMLWordPrintable

Details

    Description

      There are a couple of places which have this madness.
      We must remember that:

      'false' == true
      

      See:

      2049 im:master> gg "'true'" | grep php | grep service
      lib/db/services.php:        'ajax'        => 'true'
      lib/db/services.php:        'ajax'        => 'true'
      lib/db/services.php:        'ajax'        => 'true'
      lib/db/services.php:        'ajax'        => 'true'
      lib/db/services.php:        'ajax'        => 'true'
      lib/db/services.php:        'ajax'        => 'true'
      lib/db/services.php:        'ajax'          => 'true',
      lib/db/services.php:        'ajax'          => 'true',
      lib/db/services.php:        'ajax'          => 'true',
      lib/db/services.php:        'ajax'          => 'true',
      lib/db/services.php:        'ajax'          => 'true',
      lib/db/services.php:        'ajax'        => 'true',
      media/player/videojs/db/services.php:        'ajax'          => 'true',
      

      In this case they're all fine, and there are no instances of 'false', but we should still fix it.

      Attachments

        Issue Links

          Activity

            People

              pholden Paul Holden
              dobedobedoh Andrew Lyons
              Simey Lameze Simey Lameze
              Ferran Recio Ferran Recio
              Angelia Dela Cruz Angelia Dela Cruz
              Juan Leyva, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Laurent David, Raquel Ortega, Sara Arjona (@sarjona)
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                11/Jul/22

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 hour, 43 minutes
                  1h 43m