bugfix: show warning only when pmadb is unavailable
This commit is contained in:
@@ -75,9 +75,12 @@ $msg = PMA_Message::notice('Debug: ' . $arr2);
|
|||||||
$msg->display();
|
$msg->display();
|
||||||
|
|
||||||
// warn about using session storage for settings
|
// warn about using session storage for settings
|
||||||
$msg = __('Your preferences will be saved only for current session. Storing them permanently requires %spmadb%s.');
|
$cfgRelation = PMA_getRelationsParam();
|
||||||
$msg = PMA_sanitize(sprintf($msg, '[a@http://wiki.phpmyadmin.net/pma/pmadb@_blank]', '[/a]'));
|
if (!$cfgRelation['userconfigwork']) {
|
||||||
PMA_Message::notice($msg)->display();
|
$msg = __('Your preferences will be saved only for current session. Storing them permanently requires %spmadb%s.');
|
||||||
|
$msg = PMA_sanitize(sprintf($msg, '[a@http://wiki.phpmyadmin.net/pma/pmadb@_blank]', '[/a]'));
|
||||||
|
PMA_Message::notice($msg)->display();
|
||||||
|
}
|
||||||
|
|
||||||
if (isset($error) && $error) {
|
if (isset($error) && $error) {
|
||||||
if (!$error instanceof PMA_Message) {
|
if (!$error instanceof PMA_Message) {
|
||||||
|
Reference in New Issue
Block a user