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

Allow PHPOperatorList functions to work with parameter in template compile mode

    XMLWordPrintable

Details

    Description

      Currently the following code will work when template's don't compile:

      {urlencode( '/' )}

      But it won't when it is turned on.

      Patch:

      Index: lib/eztemplate/classes/eztemplatephpoperator.php
      ===================================================================
      --- lib/eztemplate/classes/eztemplatephpoperator.php	(revision 25306)
      +++ lib/eztemplate/classes/eztemplatephpoperator.php	(working copy)
      @@ -81,7 +81,7 @@
                                          'parameters' => false,
                                          'element-transformation' => true,
                                          'transform-parameters' => true,
      -                                   'input-as-parameter' => 'always',
      +                                   'input-as-parameter' => true,
                                          'element-transformation-func' => 'phpOperatorTransformation');
               }
               return $hints;
      

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: