mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-12 22:38:52 +00:00
[ticket/15637] Extract multi-line PHP event descriptions
PHPBB3-15637
This commit is contained in:
parent
17c3bf0b39
commit
0aea8ecd83
1 changed files with 17 additions and 1 deletions
|
@ -264,7 +264,23 @@ class php_exporter
|
||||||
|
|
||||||
// Find event description line
|
// Find event description line
|
||||||
$description_line_num = $this->find_description();
|
$description_line_num = $this->find_description();
|
||||||
$description = substr(trim($this->file_lines[$description_line_num]), strlen('* '));
|
$description_lines = array();
|
||||||
|
|
||||||
|
while (true)
|
||||||
|
{
|
||||||
|
$description_line = substr(trim($this->file_lines[$description_line_num]), strlen('* '));
|
||||||
|
|
||||||
|
// Reached end of description if line is empty or a tag
|
||||||
|
if (!strlen($description_line) || $description_line[0] == '@')
|
||||||
|
{
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
$description_lines[] = $description_line;
|
||||||
|
$description_line_num++;
|
||||||
|
}
|
||||||
|
|
||||||
|
$description = implode(' ', $description_lines);
|
||||||
|
|
||||||
if (isset($this->events[$this->current_event]))
|
if (isset($this->events[$this->current_event]))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue