Commit 4afe703d authored by Nathan Phillip Brink's avatar Nathan Phillip Brink
Browse files

Use drupal_static() in the fix for Issue #1525784.

parent f22e95da
......@@ -370,7 +370,7 @@ function _content_lock_add_unload_js(&$form, $form_state) {
* value. Not calling drupal_add_js() multiple times deprives
* file_ajax_upload() of the ability to mess up here ;-).
*/
static $called;
$called =& drupal_static(__FUNCTION__ . '__called');
if (!empty($called)) {
$called++;
return $form;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment