Skip to content

Commit

Permalink
Merge pull request #98 from jine/master
Browse files Browse the repository at this point in the history
New config to disable diffrences in MySQL library/server verisons
  • Loading branch information
madhuracj committed Oct 22, 2012
2 parents d4ef7f8 + 8e6d434 commit bd20f43
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 1 deletion.
6 changes: 6 additions & 0 deletions Documentation.html
Expand Up @@ -624,6 +624,12 @@ <h2 id="config">Configuration</h2>
You can set this parameter to <code>TRUE</code> to stop this message
from appearing.</dd>

<dt id="cfg_ServerLibraryDifference_DisableWarning">$cfg['ServerLibraryDifference_DisableWarning'] boolean</dt>
<dd>A warning is displayed on the main page if there is a difference
between the MySQL library and server version.
You can set this parameter to <code>TRUE</code> to stop this message
from appearing.</dd>

<dt id="cfg_TranslationWarningThreshold">$cfg['TranslationWarningThreshold'] integer</dt>
<dd>Show warning about incomplete translations on certain threshold.</dd>

Expand Down
8 changes: 8 additions & 0 deletions libraries/config.default.php
Expand Up @@ -61,6 +61,14 @@
*/
$cfg['McryptDisableWarning'] = false;

/**
* Disable the default warning that is displayed if a diffrence between
* the MySQL library and server is detected.
*
* @global boolean $cfg['['ServerLibraryDifference_DisableWarning']']
*/
$cfg['ServerLibraryDifference_DisableWarning'] = false;

/**
* Show warning about incomplete translations on certain threshold.
*
Expand Down
2 changes: 2 additions & 0 deletions libraries/config/messages.inc.php
Expand Up @@ -336,6 +336,8 @@
$strConfigPersistentConnections_name = __('Persistent connections');
$strConfigPmaNoRelation_DisableWarning_desc = __('Disable the default warning that is displayed on the database details Structure page if any of the required tables for the phpMyAdmin configuration storage could not be found');
$strConfigPmaNoRelation_DisableWarning_name = __('Missing phpMyAdmin configuration storage tables');
$strConfigServerLibraryDifference_DisableWarning_desc = __('Disable the default warning that is displayed if a diffrence between the MySQL library and server is detected');
$strConfigServerLibraryDifference_DisableWarning_name = __('Server/library diffrence warning');
$strConfigPropertiesIconic_desc = __('Use only icons, only text or both');
$strConfigPropertiesIconic_name = __('Iconic table operations');
$strConfigProtectBinary_desc = __('Disallow BLOB and BINARY columns from editing');
Expand Down
1 change: 1 addition & 0 deletions libraries/config/setup.forms.php
Expand Up @@ -114,6 +114,7 @@
'TitleDatabase',
'TitleServer');
$forms['Features']['Warnings'] = array(
'ServerLibraryDifference_DisableWarning',
'PmaNoRelation_DisableWarning',
'SuhosinDisableWarning',
'McryptDisableWarning');
Expand Down
1 change: 1 addition & 0 deletions libraries/config/user_preferences.forms.php
Expand Up @@ -49,6 +49,7 @@
'TitleDatabase',
'TitleServer');
$forms['Features']['Warnings'] = array(
'ServerLibraryDifference_DisableWarning',
'PmaNoRelation_DisableWarning',
'SuhosinDisableWarning',
'McryptDisableWarning');
Expand Down
4 changes: 3 additions & 1 deletion main.php
Expand Up @@ -454,7 +454,9 @@
* Drizzle can speak MySQL protocol, so don't warn about version mismatch for
* Drizzle servers.
*/
if (function_exists('PMA_DBI_get_client_info') && !PMA_DRIZZLE) {
if (function_exists('PMA_DBI_get_client_info') && !PMA_DRIZZLE
&& $cfg['ServerLibraryDiffrence_DisableWarning'] == false
) {
$_client_info = PMA_DBI_get_client_info();
if ($server > 0
&& strpos($_client_info, 'mysqlnd') === false
Expand Down

0 comments on commit bd20f43

Please sign in to comment.