Revision 1017
Added by Ruud almost 15 years ago
filter-routines.php | ||
---|---|---|
78 | 78 |
|
79 | 79 |
// check if Javascript mailto encryption is enabled (call register_frontend_functions in the template) |
80 | 80 |
$search = '<script type="text/javascript" src="' .WB_URL .'/modules/output_filter/js/mdcr.js"></script>'; |
81 |
if(strpos($content, $search) !== false) { |
|
81 |
$search_droplet = '<script type="text/javascript" src="' .WB_URL .'/modules/droplets/js/mdcr.js"></script>'; |
|
82 |
if(strpos($content, $search) !== false || strpos($content, $search_droplet) !== false) { |
|
82 | 83 |
$output_filter_mode = $output_filter_mode + 4; // 0|4 |
83 | 84 |
} |
84 | 85 |
} |
Also available in: Unified diff
Fixed a small bug in output_filter. Did not detect the included script from /droplet/js/ directory.