aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
authorTristan Darricau <github@nicofuma.fr>2014-10-20 19:42:54 +0200
committerTristan Darricau <github@nicofuma.fr>2014-10-20 19:42:54 +0200
commitfaf4b03c43ecac7aa16e42433cce591512f3ef90 (patch)
treec3ee2adb371dc28fbca2d5d86021dff04842ca90 /phpBB
parent8f6fcd2744a80795139600c2a7c1f46f59b8cbfe (diff)
downloadforums-faf4b03c43ecac7aa16e42433cce591512f3ef90.tar
forums-faf4b03c43ecac7aa16e42433cce591512f3ef90.tar.gz
forums-faf4b03c43ecac7aa16e42433cce591512f3ef90.tar.bz2
forums-faf4b03c43ecac7aa16e42433cce591512f3ef90.tar.xz
forums-faf4b03c43ecac7aa16e42433cce591512f3ef90.zip
[ticket/13126] Change messages verbosity levels
PHPBB3-13126
Diffstat (limited to 'phpBB')
-rw-r--r--phpBB/phpbb/console/command/db/console_migrator_output_handler.php2
-rw-r--r--phpBB/phpbb/db/html_migrator_output_handler.php2
-rw-r--r--phpBB/phpbb/db/migrator.php10
3 files changed, 7 insertions, 7 deletions
diff --git a/phpBB/phpbb/console/command/db/console_migrator_output_handler.php b/phpBB/phpbb/console/command/db/console_migrator_output_handler.php
index 0c494cea63..74549e8e42 100644
--- a/phpBB/phpbb/console/command/db/console_migrator_output_handler.php
+++ b/phpBB/phpbb/console/command/db/console_migrator_output_handler.php
@@ -58,7 +58,7 @@ class console_migrator_output_handler implements migrator_output_handler_interfa
{
$translated_message = '<info>' . $translated_message . '</info>';
}
- else if ($verbosity === migrator_output_handler_interface::VERBOSITY_VERY_VERBOSE)
+ else if ($verbosity === migrator_output_handler_interface::VERBOSITY_VERBOSE)
{
$translated_message = '<comment>' . $translated_message . '</comment>';
}
diff --git a/phpBB/phpbb/db/html_migrator_output_handler.php b/phpBB/phpbb/db/html_migrator_output_handler.php
index 82b7b416e2..e37c667463 100644
--- a/phpBB/phpbb/db/html_migrator_output_handler.php
+++ b/phpBB/phpbb/db/html_migrator_output_handler.php
@@ -39,7 +39,7 @@ class html_migrator_output_handler implements migrator_output_handler_interface
*/
public function write($message, $verbosity)
{
- if ($verbosity <= migrator_output_handler_interface::VERBOSITY_NORMAL)
+ if ($verbosity <= migrator_output_handler_interface::VERBOSITY_VERBOSE)
{
$final_message = call_user_func_array(array($this->user, 'lang'), $message);
echo $final_message . "<br />\n";
diff --git a/phpBB/phpbb/db/migrator.php b/phpBB/phpbb/db/migrator.php
index 9d9ad4f409..c2fa04eb44 100644
--- a/phpBB/phpbb/db/migrator.php
+++ b/phpBB/phpbb/db/migrator.php
@@ -91,7 +91,7 @@ class migrator
$this->table_prefix = $table_prefix;
- $this->output_handler = new migrator_output_handler();
+ $this->output_handler = new null_migrator_output_handler();
foreach ($tools as $tool)
{
@@ -257,7 +257,7 @@ class migrator
$this->last_run_migration['effectively_installed'] = true;
- $this->output_handler->write(array('MIGRATION_EFFECTIVELY_INSTALLED', $name), migrator_output_handler::VERBOSITY_NORMAL);
+ $this->output_handler->write(array('MIGRATION_EFFECTIVELY_INSTALLED', $name), migrator_output_handler::VERBOSITY_VERBOSE);
}
else
{
@@ -269,7 +269,7 @@ class migrator
if (!$state['migration_schema_done'])
{
- $this->output_handler->write(array('MIGRATION_SCHEMA_RUNNING', $name), migrator_output_handler::VERBOSITY_VERY_VERBOSE);
+ $this->output_handler->write(array('MIGRATION_SCHEMA_RUNNING', $name), migrator_output_handler::VERBOSITY_VERBOSE);
$this->last_run_migration['task'] = 'process_schema_step';
$elapsed_time = microtime(true);
@@ -286,7 +286,7 @@ class migrator
{
try
{
- $this->output_handler->write(array('MIGRATION_DATA_RUNNING', $name), migrator_output_handler::VERBOSITY_VERY_VERBOSE);
+ $this->output_handler->write(array('MIGRATION_DATA_RUNNING', $name), migrator_output_handler::VERBOSITY_VERBOSE);
$this->last_run_migration['task'] = 'process_data_step';
@@ -304,7 +304,7 @@ class migrator
}
else
{
- $this->output_handler->write(array('MIGRATION_DATA_IN_PROGRESS', $name, $elapsed_time), migrator_output_handler::VERBOSITY_VERBOSE);
+ $this->output_handler->write(array('MIGRATION_DATA_IN_PROGRESS', $name, $elapsed_time), migrator_output_handler::VERBOSITY_VERY_VERBOSE);
}
}
catch (\phpbb\db\migration\exception $e)