
09-10-2008, 03:39 PM
|
|
|
Join Date: Mar 2007
Posts: 125
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
This didn't work:
Quote:
Originally Posted by Dismounted
It generated a parse_url() error, correct? The cause of the error is that it isn't a valid URL. I'll need to do a loop to suppress errors, instead of using array_map().
In the meantime, just do this edit to the plugin "Rewrite Function". Find:
PHP Code:
$parsed = array_map('parse_url', array_map('strtolower', $links));
Replace With:
PHP Code:
// convert all links to lowercase $links = array_map('strtolower', $links); // parse links $parsed = array(); foreach ($links AS $link) { $parsed[] = @parse_url($link); }
|
But replacing the original phrase with this did:
Quote:
Originally Posted by Dismounted
Try this instead:
PHP Code:
// convert all links to lowercase $lower_links = array_map('strtolower', $links); // parse links $parsed = array(); foreach ($lower_links AS $link) { $parsed[] = @parse_url($link); }
|
|