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

            Show
            cttxg Teresa Gibbison added a comment - Discussion http://moodle.org/mod/forum/discuss.php?d=124888#p548375
            Hide
            poltawski Dan Poltawski added a comment -

            This has been fixed in 2.0. Investigating a 1.9 fix now

            Show
            poltawski Dan Poltawski added a comment - This has been fixed in 2.0. Investigating a 1.9 fix now
            Hide
            poltawski Dan Poltawski added a comment -

            I've fixed this in CVS for 1.9

            Show
            poltawski Dan Poltawski added a comment - I've fixed this in CVS for 1.9
            Hide
            rwijaya Rossiani Wijaya added a comment -

            the CVS commit works well with my 1.9.6 version

            Thanks for fixing this Dan.

            Rosie

            Show
            rwijaya Rossiani Wijaya added a comment - the CVS commit works well with my 1.9.6 version Thanks for fixing this Dan. Rosie
            Hide
            tsala Helen Foster added a comment -

            Dan, thanks for fixing this issue.

            Show
            tsala Helen Foster added a comment - Dan, thanks for fixing this issue.

              People

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

                Dates

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