not change links properly
tomaszx - April 5, 2008 - 00:18
| Project: | Path Filter |
| Version: | 6.x-1.0 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
using \" url() \" you excluded a convertion this link by drupal filter.
I sugest to chang the line:
return preg_replace('/"internal:([^"#\?]+)\??([^"#]+)?#?([^"]+)?"/e',
"'\"'. url('$1', array('query' => '$2' ? '$2' : NULL, 'fragment' => '$3' ? '$3' : NULL, 'absolute' => ". $absolute .")) .' \"'", $text);to:
($absolute == 'TRUE') ? $a = '' : $a = '"';
return preg_replace('/"internal:([^"#\?]+)\??([^"#]+)?#?([^"]+)?"/e',
"'$a'. url('$1', array('query' => '$2' ? '$2' : NULL, 'fragment' => '$3' ? '$3' : NULL, 'absolute' => ". $absolute .")) .'$a'", $text);
#1
pleae explain.
#2
Closing due to 7 months of inactivity. Plus, I have no idea what the original question was!