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

HTML block showing header when is no title

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 1.5.1
    • Fix Version/s: 1.9.7
    • Component/s: Blocks
    • Labels:
      None
    • Environment:
      All
    • URL:
      cvs: /blocks/html/block_html.php
    • Affected Branches:
      MOODLE_15_STABLE
    • Fixed Branches:
      MOODLE_19_STABLE

      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; }

      }

        Gliffy Diagrams

          Attachments

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  25/Nov/09