| @@ 699-703 (lines=5) @@ | ||
| 696 | { |
|
| 697 | global $scripturl; return '"' . $scripturl . "/" . strtr("$m[1]", '&;=', '//,') . ".html?" . SID . (isset($m[2]) ? $m[2] : "") . '"'; |
|
| 698 | }, $buffer); |
|
| 699 | else |
|
| 700 | $buffer = preg_replace_callback('~"' . preg_quote($scripturl, '/') . '\?((?:board|topic)=[^#"]+?)(#[^"]*?)?"~', function($m) |
|
| 701 | { |
|
| 702 | global $scripturl; return '"' . $scripturl . '/' . strtr("$m[1]", '&;=', '//,') . '.html' . (isset($m[2]) ? $m[2] : "") . '"'; |
|
| 703 | }, $buffer); |
|
| 704 | } |
|
| 705 | ||
| 706 | // Return the changed buffer. |
|
| @@ 2890-2895 (lines=6) @@ | ||
| 2887 | { |
|
| 2888 | return $scripturl . '/' . strtr("$m[1]", '&;=', '//,') . '.html?' . SID. (isset($m[2]) ? "$m[2]" : ""); |
|
| 2889 | }, $setLocation); |
|
| 2890 | else |
|
| 2891 | $setLocation = preg_replace_callback('~^' . preg_quote($scripturl, '/') . '\?((?:board|topic)=[^#"]+?)(#[^"]*?)?$~', |
|
| 2892 | function ($m) use ($scripturl) |
|
| 2893 | { |
|
| 2894 | return $scripturl . '/' . strtr("$m[1]", '&;=', '//,') . '.html' . (isset($m[2]) ? "$m[2]" : ""); |
|
| 2895 | }, $setLocation); |
|
| 2896 | } |
|
| 2897 | ||
| 2898 | // Maybe integrations want to change where we are heading? |
|