Im in modx revo 2.2.13.
This is a special site we have. When I am editing a snippet i see that the start php tag is missing. If I add the start tag and save it just dissapeares. when I see in the cache files i see a code.
I find this code in all the cache.php snippets and plugins in core/cache/scripts/elements/modplugin
<?php return 'function elements_modplugin_1($scriptProperties= array()) {
global $modx;
if (is_array($scriptProperties)) {
extract($scriptProperties, EXTR_SKIP);
}
This is in a site i have, but in another site its not like this.
In backend in Revo i use Codemirror but I cannot see the start tag, it looks like this code over here is injected when I save the snippet or plugin.
Have you seen it before?