Check out the LimeSurvey source code on GitHub!

str_replace

More
2 years 11 months ago #105618 by PeanutButter9000
Hi,

I am working on a project where the client requires there to be periods in some of the variable names in the SPSS output (> v16) from the surveys. I figured that the easiest way to accomplish this would be to use a placeholder "ZZ" for the periods in limesurvey and then use a str_replace function to modify these before output.

Looking at export.php line 566, there already is an function with an array. I appended my intended function to this but it doesn't seem to have any effect. See below. Am I missing something obvious?

Line 566:

$ftitle = str_replace(array(" ","-",":",";","!","/","\\","'","ZZ"), array("_","_hyph_","_dd_","_dc_","_excl_","_fs_","_bs_","_qu_","."), $ftitle);

Kind regards,

PB9K

Please Log in to join the conversation.

More
2 years 11 months ago #105620 by PeanutButter9000
It appears that any changes I make to export.php are not being loaded. I have cleared all local caches but I still see no effect of any changes.

Any ideas on how I can fix this?

Please Log in to join the conversation.

Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form