Skip to content

Commit

Permalink
Remove the $_PMA_RTE global variable
Browse files Browse the repository at this point in the history
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
  • Loading branch information
MauricioFauth committed Apr 13, 2020
1 parent 4bd3840 commit 92bc734
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 12 deletions.
4 changes: 1 addition & 3 deletions libraries/classes/Controllers/Database/EventsController.php
Expand Up @@ -20,11 +20,9 @@ class EventsController extends AbstractController
{
public function index(): void
{
global $_PMA_RTE, $table, $db, $tables, $num_tables, $total_num_tables, $sub_part, $errors, $titles;
global $table, $db, $tables, $num_tables, $total_num_tables, $sub_part, $errors, $titles;
global $is_show_stats, $db_is_system_schema, $tooltip_truename, $tooltip_aliasname, $pos, $url_query;

$_PMA_RTE = 'EVN';

if (! $this->response->isAjax()) {
/**
* Displays the header and tabs
Expand Down
Expand Up @@ -40,16 +40,14 @@ public function __construct($response, $dbi, Template $template, $db, CheckUserP

public function index(): void
{
global $_PMA_RTE, $db, $table, $tables, $num_tables, $total_num_tables, $sub_part, $is_show_stats;
global $db, $table, $tables, $num_tables, $total_num_tables, $sub_part, $is_show_stats;
global $db_is_system_schema, $tooltip_truename, $tooltip_aliasname, $pos, $url_query;
global $errors, $titles;

$params = ['type' => $_REQUEST['type'] ?? null];

$this->checkUserPrivileges->getPrivileges();

$_PMA_RTE = 'RTN';

if (! $this->response->isAjax()) {
/**
* Displays the header and tabs
Expand Down
Expand Up @@ -20,12 +20,10 @@ class TriggersController extends AbstractController
{
public function index(): void
{
global $_PMA_RTE, $db, $table, $tables, $num_tables, $total_num_tables, $sub_part, $is_show_stats;
global $db, $table, $tables, $num_tables, $total_num_tables, $sub_part, $is_show_stats;
global $db_is_system_schema, $tooltip_truename, $tooltip_aliasname, $pos, $url_query;
global $errors, $titles;

$_PMA_RTE = 'TRI';

if (! $this->response->isAjax()) {
/**
* Displays the header and tabs
Expand Down
4 changes: 1 addition & 3 deletions libraries/classes/Controllers/Table/TriggersController.php
Expand Up @@ -17,12 +17,10 @@ class TriggersController extends AbstractController
{
public function index(): void
{
global $_PMA_RTE, $db, $table, $tables, $num_tables, $total_num_tables, $sub_part, $is_show_stats;
global $db, $table, $tables, $num_tables, $total_num_tables, $sub_part, $is_show_stats;
global $db_is_system_schema, $tooltip_truename, $tooltip_aliasname, $pos, $url_query;
global $errors, $titles;

$_PMA_RTE = 'TRI';

if (! $this->response->isAjax()) {
/**
* Displays the header and tabs
Expand Down

0 comments on commit 92bc734

Please sign in to comment.