Closed (duplicate)
Project:
Drupal core
Version:
6.x-dev
Component:
system.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
1 Jul 2009 at 22:22 UTC
Updated:
1 Jul 2009 at 23:29 UTC
6.12 has a function in modules/system/system.admin.inc with the following parameters:
function system_clear_cache_submit(&$form_state, $form) {
drupal_flush_all_caches();
drupal_set_message(t('Caches cleared.'));
}
6.13 released today, 7/1/09 has the parameters reversed in a new version:
function system_clear_cache_submit($form, &$form_state) {
drupal_flush_all_caches();
drupal_set_message(t('Caches cleared.'));
}
Just a blip? Causes problem in Admin menu. Only called from system_performance_settings in same file. I can't see why the order was changed...
Comments
Comment #1
databoy commentedI searched the issue queue for "system_clear_cache_submit" but didn't find where the swap occurred in March until someone updated with a comment (probably because the issue was closed last month).
There's no reasoning for why the change was made, just a swap.
Now, there's two versions of the function, and Admin menu (and any other contributed) has to work with both? Or be broken...
Comment #2
tobiasbinstall admin menu dev or wait until the next release. June 9, 2009 -> http://drupal.org/project/cvs/108746?nid=108746&page=2&nid=108746
Comment #3
dave reidThat's the proper order, although we didn't really need the reference on the second parameter since it is never used. That's odd.
Comment #4
dave reidDuplicate of #236657: Swapped arguments in system_clear_cache_submit function. Use either 6.x-1.x-dev or 6.x-3.x-dev until we can push another release out.