Check out the LimeSurvey source code on GitHub!
Welcome, Guest
Username: Password:

TOPIC: str_replace

str_replace 2 years 9 months ago #105618


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,

The administrator has disabled public write access.

str_replace 2 years 9 months ago #105620

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?
The administrator has disabled public write access.
Time to create page: 2.651 seconds
Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form