Uploaded image for project: 'phpBB3'
  1. phpBB3
  2. PHPBB3-13266

Enabling twig dump function if DEBUG is defined

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.2.0-dev
    • Fix Version/s: 3.1.3-RC1, 3.2.0-a1
    • Component/s: Template Engine
    • Labels:
      None

      Description

      It would be handy to enable the twig dump function when DEBUG is defined. The debug setting is already passed through to the twig environment but it doesn't activate the dump function.

      If you add this to ./phpbb/template/twig/twig.php near line 110:

      if (defined('DEBUG')) {
         $this->twig->addExtension(new \Twig_Extension_Debug());
      }
      

      It enables this function: http://twig.sensiolabs.org/doc/functions/dump.html

        Attachments

          Activity

            People

            • Assignee:
              nickvergessen Joas Schilling
              Reporter:
              roufneck roufneck [X] (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: