1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 22:10:45 +02:00

[ticket/13807] Add an option to generate a diff for the release highlights

PHPBB3-13807
This commit is contained in:
Joas Schilling
2015-05-02 14:33:31 +02:00
parent bdad879508
commit 96d97ae2d2
3 changed files with 68 additions and 14 deletions

View File

@@ -158,11 +158,20 @@ class php_exporter
/**
* Format the php events as a wiki table
*
* @param string $action
* @return string
*/
public function export_events_for_wiki()
public function export_events_for_wiki($action = '')
{
$wiki_page = '= PHP Events (Hook Locations) =' . "\n";
if ($action === 'diff')
{
$wiki_page = '=== PHP Events (Hook Locations) ===' . "\n";
}
else
{
$wiki_page = '= PHP Events (Hook Locations) =' . "\n";
}
$wiki_page .= '{| class="sortable zebra" cellspacing="0" cellpadding="5"' . "\n";
$wiki_page .= '! Identifier !! Placement !! Arguments !! Added in Release !! Explanation' . "\n";
foreach ($this->events as $event)