Skip to content

Commit

Permalink
Fix EZP-22897: Missing access to persistent variable through LegacyHe…
Browse files Browse the repository at this point in the history
…lper

Simply adds easy access to `persistent_variable` set in legacy:

```jinja
{% set persistent_variable = ezpublish.legacy.get( "persistent_variable" ) %}
```
  • Loading branch information
lolautruche committed May 21, 2014
1 parent 3ce5e59 commit dcbe5fa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions eZ/Publish/Core/MVC/Legacy/Templating/LegacyHelper.php
Expand Up @@ -53,6 +53,7 @@ function () use ( $moduleResult, $that )
{
$moduleResult['content_info']['persistent_variable'] = ezjscPackerTemplateFunctions::getPersistentVariable();
}
$that->set( 'persistent_variable', $moduleResult['content_info']['persistent_variable'] );

// Javascript/CSS files required with ezcss_require/ezscript_require
// Compression level is forced to 0 to only get the files list
Expand Down

0 comments on commit dcbe5fa

Please sign in to comment.