Skip to content

Commit

Permalink
Disabled database utilities for PostgreSQL users
Browse files Browse the repository at this point in the history
  • Loading branch information
mystralkk committed Dec 14, 2016
1 parent b8d607e commit 5aaf071
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions public_html/admin/database.php
Expand Up @@ -39,6 +39,11 @@
require_once '../lib-common.php';
require_once 'auth.inc.php';

// Currently, database feature is supported with MySQL only
if ($_DB_dbms !== 'mysql') {
COM_redirect($_CONF['site_url']);
}

require_once $_CONF['path'].'system/classes/dbbackup.class.php';

$display = '';
Expand Down
2 changes: 1 addition & 1 deletion public_html/lib-common.php
Expand Up @@ -3328,7 +3328,7 @@ function COM_commandControl($isAdminMenu = false, $help = '', $title = '', $posi
'image' => $_CONF['layout_url'] . '/images/icons/plugins.' . $_IMAGE_TYPE,
),
array(
'condition' => SEC_inGroup('Root'),
'condition' => ($_DB_dbms === 'mysql') && SEC_inGroup('Root'),
'url' => $_CONF['site_admin_url'] . '/database.php',
'lang' => $LANG01[103],
'num' => '',
Expand Down

0 comments on commit 5aaf071

Please sign in to comment.