You are here

Fixing Media Module so it does not eat everything between [[ double brackets ]]

Last modified: 
Sunday, December 14, 2014 - 14:20


Ran into a jam while trying to post some Bash Script code where anything between would disappear.
After alittle trouble shooting, discovered it was the Media Module, search the modules Issue Tracker and found a patch.

File which need to be edited:
sites/all/modules/media/includes/media.filter.inc
Around lines, 333-336 and 401

  #$match = str_replace("", "", $match);  # media-preserve-double-brackets-1828580-1.patch
  #$tag = $match[0]; # media-preserve-double-brackets-1828580-1.patch
  $input = $match[0]; # media-preserve-double-brackets-1828580-1.patch
  $tag = str_replace("", "", $tag); # media-preserve-double-brackets-1828580-1.patch

  catch (Exception $e) {
    watchdog('media', 'Unable to render media from %tag. Error: %error', array('%tag' => $tag, '%error' => $e->getMessage()));
   #  return ''; # media-preserve-double-brackets-1828580-1.patch
    return $input; # media-preserve-double-brackets-1828580-1.patch
  }

 

Mobile QR Barcodes: 
Save Article as PDF
Current URL Address
Category: 

Add new comment