mirror of
https://github.com/php/web-php.git
synced 2026-03-23 23:02:13 +01:00
Fix: Remove useless function (#855)
This commit is contained in:
@@ -4,12 +4,6 @@ namespace releases\php82;
|
||||
|
||||
include_once __DIR__ . '/../../include/prepend.inc';
|
||||
|
||||
function language_redirect(string $currentLang): void {
|
||||
// We don't use the general language selection of php.net,
|
||||
// so soldier on with this one.
|
||||
return;
|
||||
}
|
||||
|
||||
function common_header(string $description): void {
|
||||
global $MYSITE;
|
||||
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
|
||||
use function releases\php82\common_header;
|
||||
use function releases\php82\language_chooser;
|
||||
use function releases\php82\language_redirect;
|
||||
use function releases\php82\message;
|
||||
|
||||
if (!isset($lang)) {
|
||||
@@ -13,8 +12,6 @@ $_SERVER['BASE_PAGE'] = 'releases/8.2/' . $lang . '.php';
|
||||
|
||||
include_once __DIR__ . '/common.php';
|
||||
|
||||
language_redirect($lang);
|
||||
|
||||
common_header(message('common_header', $lang));
|
||||
|
||||
?>
|
||||
|
||||
@@ -4,12 +4,6 @@ namespace releases\php83;
|
||||
|
||||
include_once __DIR__ . '/../../include/prepend.inc';
|
||||
|
||||
function language_redirect(string $currentLang): void {
|
||||
// We don't use the general language selection of php.net,
|
||||
// so soldier on with this one.
|
||||
return;
|
||||
}
|
||||
|
||||
function common_header(string $description): void {
|
||||
global $MYSITE;
|
||||
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
|
||||
use function releases\php83\common_header;
|
||||
use function releases\php83\language_chooser;
|
||||
use function releases\php83\language_redirect;
|
||||
use function releases\php83\message;
|
||||
|
||||
if (!isset($lang)) {
|
||||
@@ -13,8 +12,6 @@ $_SERVER['BASE_PAGE'] = 'releases/8.3/' . $lang . '.php';
|
||||
|
||||
include_once __DIR__ . '/common.php';
|
||||
|
||||
language_redirect($lang);
|
||||
|
||||
common_header(message('common_header', $lang));
|
||||
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user