diff --git a/libraries/Message.class.php b/libraries/Message.class.php index 30648682c..3b0d0c51c 100644 --- a/libraries/Message.class.php +++ b/libraries/Message.class.php @@ -19,9 +19,6 @@ * * // get special notice 'Some locale notice' * $message = PMA_Message::notice('strSomeLocaleNotice'); - * - * // display raw warning message 'This is a warning!' - * PMA_Message::rawWarning('This is a warning!')->display(); * * * more advanced usage example: @@ -63,7 +60,6 @@ class PMA_Message { const SUCCESS = 1; // 0001 const NOTICE = 2; // 0010 - const WARNING = 4; // 0100 const ERROR = 8; // 1000 const SANITIZE_NONE = 0; // 0000 0000 @@ -79,7 +75,6 @@ class PMA_Message static public $level = array ( PMA_Message::SUCCESS => 'success', PMA_Message::NOTICE => 'notice', - PMA_Message::WARNING => 'warning', PMA_Message::ERROR => 'error', ); @@ -213,22 +208,6 @@ class PMA_Message return new PMA_Message($string, PMA_Message::ERROR); } - /** - * get PMA_Message of type warning - * - * shorthand for getting a simple warning message - * - * @static - * @uses PMA_Message as returned object - * @uses PMA_Message::WARNING - * @param string $string a localized string e.g. 'strSetupWarning' - * @return PMA_Message - */ - static public function warning($string) - { - return new PMA_Message($string, PMA_Message::WARNING); - } - /** * get PMA_Message of type notice * @@ -337,22 +316,6 @@ class PMA_Message return PMA_Message::raw($message, PMA_Message::ERROR); } - /** - * get PMA_Message of type warning with custom content - * - * shorthand for getting a customized warning message - * - * @static - * @uses PMA_Message::raw() - * @uses PMA_Message::WARNING - * @param string $message - * @return PMA_Message - */ - static public function rawWarning($message) - { - return PMA_Message::raw($message, PMA_Message::WARNING); - } - /** * get PMA_Message of type notice with custom content * diff --git a/libraries/sqlparser.lib.php b/libraries/sqlparser.lib.php index 893aef092..cbad1d675 100644 --- a/libraries/sqlparser.lib.php +++ b/libraries/sqlparser.lib.php @@ -360,7 +360,7 @@ if (! defined('PMA_MINIMUM_COMMON')) { $pos = $pos_quote_separator; } if (class_exists('PMA_Message')) { - PMA_Message::warning(__('Automatically appended backtick to the end of query!'))->display(); + PMA_Message::notice(__('Automatically appended backtick to the end of query!'))->display(); } } else { $debugstr = __('Unclosed quote') . ' @ ' . $startquotepos. "\n" @@ -1960,7 +1960,7 @@ if (! defined('PMA_MINIMUM_COMMON')) { if ($seen_create_table && $in_create_table_fields) { $current_identifier = $identifier; - // warning: we set this one even for non TIMESTAMP type + // we set this one even for non TIMESTAMP type $create_table_fields[$current_identifier]['timestamp_not_null'] = FALSE; } diff --git a/setup/frames/index.inc.php b/setup/frames/index.inc.php index 00723cdfb..910360638 100644 --- a/setup/frames/index.inc.php +++ b/setup/frames/index.inc.php @@ -61,7 +61,7 @@ if (!$is_https) { $text .= ' ' . PMA_lang($strInsecureConnectionMsg2, 'https://' . htmlspecialchars($_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'])); } - messages_set('warning', 'no_https', __('Insecure connection'), $text); + messages_set('notice', 'no_https', __('Insecure connection'), $text); } ?> diff --git a/setup/lib/form_processing.lib.php b/setup/lib/form_processing.lib.php index 7bad38c59..17f58a60e 100644 --- a/setup/lib/form_processing.lib.php +++ b/setup/lib/form_processing.lib.php @@ -38,7 +38,7 @@ function process_formset(FormDisplay $form_display) { } $id = $id ? "{$separator}id=$id" : ''; ?> -