mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-22 06:13:58 -07:00
Removed useless global $lang; from info.php (#1195)
This commit is contained in:
parent
7c8239bc36
commit
987e033d13
1 changed files with 3 additions and 6 deletions
9
info.php
9
info.php
|
@ -14,13 +14,10 @@ require __DIR__ . '/common.php';
|
||||||
// Start session management
|
// Start session management
|
||||||
$user->session_start();
|
$user->session_start();
|
||||||
|
|
||||||
global $lang;
|
|
||||||
|
|
||||||
$info = [];
|
$info = [];
|
||||||
$html_dir = LANG_DIR . 'html/';
|
$htmlDir = LANG_DIR . 'html/';
|
||||||
$req_mode = (string)($_REQUEST['show'] ?? '');
|
|
||||||
|
|
||||||
switch ($req_mode) {
|
switch ((string)$_REQUEST['show']) {
|
||||||
case 'advert':
|
case 'advert':
|
||||||
$info['title'] = $lang['ADVERT'];
|
$info['title'] = $lang['ADVERT'];
|
||||||
$info['src'] = 'advert.html';
|
$info['src'] = 'advert.html';
|
||||||
|
@ -43,7 +40,7 @@ switch ($req_mode) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
$require = file_exists($html_dir . $info['src']) ? $html_dir . $info['src'] : false;
|
$require = file_exists($htmlDir . $info['src']) ? ($htmlDir . $info['src']) : false;
|
||||||
|
|
||||||
$template->assign_vars([
|
$template->assign_vars([
|
||||||
'PAGE_TITLE' => mb_strtoupper($info['title'], 'UTF-8'),
|
'PAGE_TITLE' => mb_strtoupper($info['title'], 'UTF-8'),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue