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:
committed by
Tristan Darricau
parent
a32d429f1e
commit
51916def9c
@@ -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);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user