callbacks defined in modules/media_wysiwyg/includes/media_wysiwyg.uuid.inc use old media_token_ namespace instead of media_wywsiwyg_token_ namespace

Throws following error:

Warning: preg_replace_callback() [function.preg-replace-callback]: Requires argument 2, 'media_token_fid_to_uuid', to be a valid callback in media_wysiwyg_filter_replace_tokens_in_all_text_fields() (line 41 of .../media/modules/media_wysiwyg/includes/media_wysiwyg.uuid.inc).

Comments

erykmynn’s picture

Status: Active » Needs review
StatusFileSize
new1.23 KB

Here is a patch for the fix. Grep seems to indicate this usage was confined to this file. Seems straightforward.

devin carlson’s picture

Status: Needs review » Fixed

Thanks for the patch!

Tested with UUID and confirmed that it fixes the error messages caused by using the old function name.

Committed #1 to Media 7.x-2.x.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.