Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-17551

An useless extra test for $show_page_layout in index.php

    XMLWordPrintable

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Medium Medium
    • 4.5.0alpha
    • 4.4.0
    • Misc
    • None

    Description

      Hi guys,

      Just exploring index.php file (on ezpublish 4.4) , and something is useless at line 1013.

      You have this test:

      if ( $show_page_layout )
          {
              if ( $ini->variable( 'DebugSettings', 'DisplayDebugWarnings' ) == 'enabled' )
              {
      

      But test already done at line 968 with this :

      if ( $show_page_layout )
      {
          $tpl = eZTemplate::factory();
      

      Not really a big deal but remove some lines could be great

      Attachments

        Activity

          People

            andre1 andre1
            philippe philippe
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: