ElementHelper icon indicating copy to clipboard operation
ElementHelper copied to clipboard

Snippets stop functioning after becoming static files

Open Qaraqter opened this issue 11 years ago • 2 comments

This is because of the description for EH being added at the start of each file:

<?php
/**
 *
 * @Description 
 *
 */ ?>

By closing the PHP tag there, the rest of the snippet code is ignored..

Qaraqter avatar Oct 06 '14 12:10 Qaraqter

I tried to fix it by adding an extra <?php tag after this section, but somehow I ended up with this error:

Fatal error: Call to undefined function token_get_all() in /xxxxxxxxxxxxxxx/core/components/elementhelper/model/filehelper.class.php on line 56

Qaraqter avatar Oct 06 '14 13:10 Qaraqter

chenge line ~199 from: $output .= "\n *\n */ ?>\n\n"; to $output .= "\n *\n */ \n\n"; in components/elementhelper/model/elementhelper.class.php

math-u avatar Feb 28 '18 22:02 math-u