| @@ 2932-2937 (lines=6) @@ | ||
| 2929 | { |
|
| 2930 | return $scripturl . '/' . strtr("$m[1]", '&;=', '//,') . '.html?' . SID. (isset($m[2]) ? "$m[2]" : ""); |
|
| 2931 | }, $setLocation); |
|
| 2932 | else |
|
| 2933 | $setLocation = preg_replace_callback('~^' . preg_quote($scripturl, '~') . '\?((?:board|topic)=[^#"]+?)(#[^"]*?)?$~', |
|
| 2934 | function ($m) use ($scripturl) |
|
| 2935 | { |
|
| 2936 | return $scripturl . '/' . strtr("$m[1]", '&;=', '//,') . '.html' . (isset($m[2]) ? "$m[2]" : ""); |
|
| 2937 | }, $setLocation); |
|
| 2938 | } |
|
| 2939 | ||
| 2940 | // Maybe integrations want to change where we are heading? |
|
| @@ 701-705 (lines=5) @@ | ||
| 698 | { |
|
| 699 | global $scripturl; return '"' . $scripturl . "/" . strtr("$m[1]", '&;=', '//,') . ".html?" . SID . (isset($m[2]) ? $m[2] : "") . '"'; |
|
| 700 | }, $buffer); |
|
| 701 | else |
|
| 702 | $buffer = preg_replace_callback('~"' . preg_quote($scripturl, '~') . '\?((?:board|topic)=[^#"]+?)(#[^"]*?)?"~', function($m) |
|
| 703 | { |
|
| 704 | global $scripturl; return '"' . $scripturl . '/' . strtr("$m[1]", '&;=', '//,') . '.html' . (isset($m[2]) ? $m[2] : "") . '"'; |
|
| 705 | }, $buffer); |
|
| 706 | } |
|
| 707 | ||
| 708 | // Return the changed buffer. |
|