Opened 15 years ago

#175 new defect

changing the values of a button using a local.php file in a custom theme causes the submit of the form to fail

Reported by: lists@… Owned by: rjl
Priority: normal Milestone:
Component: PHP scripts Version: 1.0.0 RC6
Severity: normal Keywords:
Cc:

Description

I have created a custom theme, and followed the directions in the FAQ to create a local.php file with my theme specific language text. I wanted to change the button on the settings.php page and added the following to my local.php file

$langheader_miscellaneous? = "General Settings";

The web interface would then show the correct button label, however i couldn't update the page due to the following line failing in the settings.php file

Pressed the "Update Miscellaneous Settings" button

} elseif ($button == $langbutton_update_misc?) {

The workaround was easy, change the value in the /locale/en/settings.php file.

Perhaps it is better to check the name of the submit button and create distinct names for the buttons, or have the changes made in the local.php file "respected".

I have not checked other pages to see if they exhibit the same behaviour.

Thanks

Change History (0)

Note: See TracTickets for help on using tickets.