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

HTML editor spellchecker RPC does not descend deep enough into directory hierarchy to get Moodle config file

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.0
    • Component/s: HTML Editor (TinyMCE)
    • Labels:
      None
    • Affected Branches:
      MOODLE_20_STABLE
    • Fixed Branches:
      MOODLE_20_STABLE

      Description

      Line 10 of /lib/editor/tinymce/tiny_mce/3.3.8/plugins/spellchecker/rpc.php attempts to require Moodle's main config file, but it does not descend deep enough to find it. It needs two more levels of dirname descent before it arrives at the proper config.php.

      As an additional note, there must be a better way to do this...or, at the very least, instead of repeated calls to dirname, just use "/../.." until the proper level is reached, though that still feels dirty.

        Attachments

          Activity

            People

            Assignee:
            skodak Petr Skoda
            Reporter:
            bazzymg Basil Gohar
            Tester:
            Nobody
            Participants:
            Component watchers:
            Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              24/Nov/10