Idea sandbox Idea sandbox
Popular ideas Popular ideas
Ideas in development Ideas in development
Implemented ideas Implemented ideas

Popular ideas Here are today's most popular ideas about LimeSurvey.

I don't think a user should have to manually update the config-defaults.php fil  
Written by nickheycats the 8 Feb 12 at 00:33. Global category: Logic & Conditions. New
To set advanced setup configuration settings a user has to manually update the config-defaults.php file. When an the survey engine is upgraded, extra changes need to take place in the config-dfeaults.php file.

Sorry, this request does not fit well with any of the Global categories.
0
votes
up equal down
Solution #1: Allow setting advanced setup variables in the config.php.
Written by nickheycats the 8 Feb 12 at 00:33.
For instance, if someone needs to override the $publicurl value, it has to be done in the config-defaults.php. When a user creates their config.php, they might have all the information they need to set the $publicurl, yet they cannot set the value in the config.php.

By updating the config-defaults.php to first check if the variable has been set, we can keep the user's version of the variable and set a default if needed.

$publicurl = isset($publicurl) ? $publicurl : "$rooturl";

Of course there are several ways to do this same logic.

With the code above, if a user were to set a value for $publicurl in their config.php, it would not be overwritten by the config-defaults.php. If the user does not set the value manually, the value will still be set to the default value.

Add a comment or propose a solution >>