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

    • Type: Improvement
    • Status: Closed
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: 4.3.0, 4.4.0alpha2
    • Fix Version/s: 4.4.0alpha4
    • Labels:
      None

      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

            Assignee:
            andre1 André R
            Reporter:
            andre1 André R
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: