diff --git a/setup/frames/index.inc.php b/setup/frames/index.inc.php index 6a2e69acd1..e742e112a2 100644 --- a/setup/frames/index.inc.php +++ b/setup/frames/index.inc.php @@ -47,7 +47,7 @@ $config_writable = false; $config_exists = false; check_config_rw($config_readable, $config_writable, $config_exists); if (!$config_writable || !$config_readable) { - messages_set( + PMA_messagesSet( 'error', 'config_rw', __('Cannot load or save configuration'), PMA_sanitize( __( @@ -84,7 +84,7 @@ if (!$is_https) { ) ); } - messages_set('notice', 'no_https', __('Insecure connection'), $text); + PMA_messagesSet('notice', 'no_https', __('Insecure connection'), $text); } echo '
getValue("Servers/$i/extension") == 'mysql') { $title = PMA_lang(PMA_langName('Servers/1/extension')) . " ($server_name)"; - messages_set( + PMA_messagesSet( 'notice', "Servers/$i/extension", $title, @@ -292,7 +292,7 @@ function perform_config_checks() ) { $title = PMA_lang(PMA_langName('Servers/1/auth_type')) . " ($server_name)"; - messages_set( + PMA_messagesSet( 'notice', "Servers/$i/auth_type", $title, @@ -311,7 +311,7 @@ function perform_config_checks() ) { $title = PMA_lang(PMA_langName('Servers/1/AllowNoPassword')) . " ($server_name)"; - messages_set( + PMA_messagesSet( 'notice', "Servers/$i/AllowNoPassword", $title, @@ -328,7 +328,7 @@ function perform_config_checks() if ($cookie_auth_used) { if ($blowfish_secret_set) { // 'cookie' auth used, blowfish_secret was generated - messages_set( + PMA_messagesSet( 'notice', 'blowfish_secret_created', PMA_lang(PMA_langName('blowfish_secret')), @@ -349,7 +349,7 @@ function perform_config_checks() $blowfish_warnings[] = PMA_lang(__('Key should contain letters, numbers [em]and[/em] special characters.')); } if (!empty($blowfish_warnings)) { - messages_set( + PMA_messagesSet( 'error', 'blowfish_warnings' . count($blowfish_warnings), PMA_lang(PMA_langName('blowfish_secret')), @@ -364,7 +364,7 @@ function perform_config_checks() // should be enabled if possible // if (!$cf->getValue('ForceSSL')) { - messages_set( + PMA_messagesSet( 'notice', 'ForceSSL', PMA_lang(PMA_langName('ForceSSL')), @@ -377,7 +377,7 @@ function perform_config_checks() // should be disabled // if ($cf->getValue('AllowArbitraryServer')) { - messages_set( + PMA_messagesSet( 'notice', 'AllowArbitraryServer', PMA_lang(PMA_langName('AllowArbitraryServer')), @@ -390,7 +390,7 @@ function perform_config_checks() // value greater than session.gc_maxlifetime will cause // random session invalidation after that time if ($cf->getValue('LoginCookieValidity') > ini_get('session.gc_maxlifetime')) { - messages_set( + PMA_messagesSet( 'error', 'LoginCookieValidity', PMA_lang(PMA_langName('LoginCookieValidity')), @@ -403,7 +403,7 @@ function perform_config_checks() // should be at most 1800 (30 min) // if ($cf->getValue('LoginCookieValidity') > 1800) { - messages_set( + PMA_messagesSet( 'notice', 'LoginCookieValidity', PMA_lang(PMA_langName('LoginCookieValidity')), @@ -419,7 +419,7 @@ function perform_config_checks() if ($cf->getValue('LoginCookieStore') != 0 && $cf->getValue('LoginCookieValidity') > $cf->getValue('LoginCookieStore') ) { - messages_set( + PMA_messagesSet( 'error', 'LoginCookieValidity', PMA_lang(PMA_langName('LoginCookieValidity')), @@ -432,7 +432,7 @@ function perform_config_checks() // should not be world-accessible // if ($cf->getValue('SaveDir') != '') { - messages_set( + PMA_messagesSet( 'notice', 'SaveDir', PMA_lang(PMA_langName('SaveDir')), @@ -445,7 +445,7 @@ function perform_config_checks() // should not be world-accessible // if ($cf->getValue('TempDir') != '') { - messages_set( + PMA_messagesSet( 'notice', 'TempDir', PMA_lang(PMA_langName('TempDir')), @@ -460,7 +460,7 @@ function perform_config_checks() if ($cf->getValue('GZipDump') && (@!function_exists('gzopen') || @!function_exists('gzencode')) ) { - messages_set( + PMA_messagesSet( 'error', 'GZipDump', PMA_lang(PMA_langName('GZipDump')), @@ -481,7 +481,7 @@ function perform_config_checks() $functions .= @function_exists('bzcompress') ? '' : ($functions ? ', ' : '') . 'bzcompress'; - messages_set( + PMA_messagesSet( 'error', 'BZipDump', PMA_lang(PMA_langName('BZipDump')), @@ -494,7 +494,7 @@ function perform_config_checks() // requires zip_open in import // if ($cf->getValue('ZipDump') && !@function_exists('zip_open')) { - messages_set( + PMA_messagesSet( 'error', 'ZipDump_import', PMA_lang(PMA_langName('ZipDump')), @@ -507,7 +507,7 @@ function perform_config_checks() // requires gzcompress in export // if ($cf->getValue('ZipDump') && !@function_exists('gzcompress')) { - messages_set( + PMA_messagesSet( 'error', 'ZipDump_export', PMA_lang(PMA_langName('ZipDump')), diff --git a/test/libraries/PMA_Index_test.php b/test/libraries/PMA_Index_test.php index 794b630dd3..f5a1f26b9b 100644 --- a/test/libraries/PMA_Index_test.php +++ b/test/libraries/PMA_Index_test.php @@ -69,13 +69,13 @@ class PMA_SetupIndex_Test extends PHPUnit_Framework_TestCase } /** - * Test for messages_set + * Test for PMA_messagesSet * * @return void */ - public function testMessagesSet() + public function testPMA_messagesSet() { - messages_set('type', '123', 'testTitle', 'msg'); + PMA_messagesSet('type', '123', 'testTitle', 'msg'); $this->assertEquals( array(