related to #1693 fix undefined variables in languages and plugins and a user activity unused variable causing errors

This commit is contained in:
Matthieu Leproux
2022-07-20 15:06:49 +02:00
committed by plegall
parent bc2f884f4a
commit aeb1d2b80b
3 changed files with 2 additions and 5 deletions
+1
View File
@@ -109,6 +109,7 @@ else
$page['errors'][] = l10n('Can\'t connect to server.');
}
$template->assign('ADMIN_PAGE_TITLE', l10n('Languages'));
$template->assign('isWebmaster', (is_webmaster()) ? 1 : 0);
$template->assign_var_from_handle('ADMIN_CONTENT', 'languages');
?>
+1 -3
View File
@@ -171,8 +171,6 @@ if ($plugins->get_server_plugins(true, $beta_test))
'SCREENSHOT' => (key_exists('screenshot_url', $plugin)) ? $plugin['screenshot_url']:'',
'TAGS' => $plugin["tags"],
));
$template->assign('BETA_TEST', $beta_test);
}
@@ -187,6 +185,6 @@ if (!$beta_test and preg_match('/(beta|RC)/', PHPWG_VERSION))
$template->assign('BETA_URL', $base_url.'&beta-test=true');
}
$template->assign('ADMIN_PAGE_TITLE', l10n('Plugins'));
$template->assign('BETA_TEST', $beta_test);
$template->assign_var_from_handle('ADMIN_CONTENT', 'plugins');
?>
@@ -24,8 +24,6 @@ const page_item = '<a data-page="%d">%d</a>';
var create_selecter = true;
const users_key = "{"Users"|@translate}";
const ulist = {$ulist};
const line_key = "{'%s line'|translate}";
const lines_key = "{'%s lines'|translate}";