Skip to content
Snippets Groups Projects
Commit 8a125127 authored by David Rothstein's avatar David Rothstein
Browse files

Issue #1614292 by brockjo, Albert Volkman | neclimdul: Fixed...

Issue #1614292 by brockjo, Albert Volkman | neclimdul: Fixed image_style_delete_form() doesn't take form_state() by reference (prevented image styles from being deleted on PHP 5.4).
parent a80c7e88
No related branches found
No related tags found
No related merge requests found
......@@ -17,6 +17,7 @@ Drupal 7.15, xxxx-xx-xx (development version)
- Fixed regression: The first plural index on a page was not calculated
correctly.
- Fixed bug: Language detection by domain only worked on port 80.
- Fixed bug which prevented image styles from being deleted on PHP 5.4.
Drupal 7.14 2012-05-02
----------------------
......
......@@ -292,7 +292,7 @@ function image_style_name_validate($element, $form_state) {
* @ingroup forms
* @see image_style_delete_form_submit()
*/
function image_style_delete_form($form, $form_state, $style) {
function image_style_delete_form($form, &$form_state, $style) {
$form_state['image_style'] = $style;
$replacement_styles = array_diff_key(image_style_options(), array($style['name'] => ''));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment