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

missing semicolon in ?

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 1.6.1
    • Fix Version/s: 1.6.4, 1.7
    • Component/s: General
    • Labels:
      None
    • Environment:
      All
    • Affected Branches:
      MOODLE_16_STABLE
    • Fixed Branches:
      MOODLE_16_STABLE, MOODLE_17_STABLE

      Description

      There are several files where nonbreaking space is written as '&nbsp' (without semicolon) instead of '?'. It produces warnings with HTML validation tools. Here is the list obtained from the latest 1.5.3+ Moodle:

      $ grep -R -n \&nbsp[^;] *

      course/lib.php:1227: $catimage = ?

      lang/fr/help/search.html:45:<td>Pour rechercher des textes d'un utilisateur en particulier, on préfixera un des mots de son nom de l'expression «?user:&nbsp».</td>

      lang/fr/help/search.html:53:<td>Si vous connaissez l'identifiant (Moodle ID) d'un utilisateur, vous pouvez rechercher ses contributions en utilisant la syntaxe«?userid:&nbsp», suivie de l'identifiant.</td>

      lang/fr/help/search.html:61:<td>Pour rechercher un terme apparaissant dans le sujet ou le titre d'un texte, préfixer le mot de l'expression «?subject:&nbsp».</td>

      lib/weblib.php:2619: echo '&nbsp ('. format_time(time() - $user->lastaccess, $datestring) .')';

      lib/weblib.php:4010: echo '&nbsp<a href='. $baseurl . $pagevar .'=0>1</a>?...';

      mod/forum/mod.html:247: echo '<tr><td>&nbsp</td><td>';

      mod/forum/view.php:223: echo '&nbsp';

      mod/resource/type/directory/resource.class.php:69: echo <div align=\right\><img src=\$CFG->pixpath/i/files.gif\ height=\16\ width=\16\ alt=
      />&nbsp.

      mod/resource/type/html/resource.class.php:119: echo <p>&nbsp</p>;

      mod/resource/type/text/resource.class.php:118: echo <p>&nbsp</p>;

        Attachments

          Activity

            People

            Assignee:
            skodak Petr Skoda
            Reporter:
            imported Imported
            Tester:
            Nicolas Martignoni Nicolas Martignoni
            Participants:
            Component watchers:
            Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Sujith Haridasan
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              7/Nov/06