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

HTML block showing header when is no title

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 1.5.1
    • 1.9.7
    • Blocks
    • None
    • All
    • MOODLE_15_STABLE
    • MOODLE_19_STABLE
    • cvs: /blocks/html/block_html.php

    Description

      The HTML block that is part of the standard distro from 1.5 onwards shows a header area in the block when there is no title to display.

      I believe the header bar should be hidden completely when the config has not had a title set.

      To fix the problem the following code needs to be added to the file /blocks/html/block_html.php

      function hide_header() {

      if ($this->config->title == )

      { return true; }

      else

      { return false; }

      }

      Attachments

        Activity

          People

            poltawski Dan Poltawski
            imported Imported
            Helen Foster Helen Foster
            Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Sujith Haridasan
            Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              25/Nov/09