| @@ 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. |
|
| @@ 2904-2909 (lines=6) @@ | ||
| 2901 | { |
|
| 2902 | return $scripturl . '/' . strtr("$m[1]", '&;=', '//,') . '.html?' . SID. (isset($m[2]) ? "$m[2]" : ""); |
|
| 2903 | }, $setLocation); |
|
| 2904 | else |
|
| 2905 | $setLocation = preg_replace_callback('~^' . preg_quote($scripturl, '/') . '\?((?:board|topic)=[^#"]+?)(#[^"]*?)?$~', |
|
| 2906 | function ($m) use ($scripturl) |
|
| 2907 | { |
|
| 2908 | return $scripturl . '/' . strtr("$m[1]", '&;=', '//,') . '.html' . (isset($m[2]) ? "$m[2]" : ""); |
|
| 2909 | }, $setLocation); |
|
| 2910 | } |
|
| 2911 | ||
| 2912 | // Maybe integrations want to change where we are heading? |
|