1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-30 21:40:43 +02:00

[ticket/11150] Display extension status in "gallery"

PHPBB3-11150
This commit is contained in:
Tristan Darricau
2015-09-14 13:55:21 +02:00
committed by Tristan Darricau
parent a32d429f1e
commit 51916def9c
4 changed files with 32 additions and 5 deletions

View File

@@ -42,7 +42,7 @@ trait translate_composer_trait
$parameters = [];
$level = 0;
$message = trim(strip_tags($message), "\n\r");
$message = trim($this->strip_format($message), "\n\r");
if (strpos($message, 'Deleting ') === 0)
{
@@ -94,7 +94,7 @@ trait translate_composer_trait
$parameters = [];
$level = 0;
$message = trim(strip_tags($message), "\n\r");
$message = trim($this->strip_format($message), "\n\r");
if (strpos($message, ' Problem ') === 0)
{
@@ -103,7 +103,7 @@ trait translate_composer_trait
continue;
}
$lang_key = "\n" . $message . "\n";
$lang_key = "\n" . htmlentities($message) . "\n";
$level = 4;
}
else if ($message === 'Updating dependencies')
@@ -209,4 +209,14 @@ trait translate_composer_trait
return $error;
}
protected function strip_format($message)
{
return str_replace([
'<info>', '</info>',
'<warning>', '</warning>',
'<comment>', '</comment>',
'<error>', '</error>',
], '', $message);
}
}