mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 05:50:42 +02:00
[ticket/13807] Add an option to generate a diff for the release highlights
PHPBB3-13807
This commit is contained in:
@@ -191,19 +191,35 @@ class md_exporter
|
||||
|
||||
/**
|
||||
* Format the php events as a wiki table
|
||||
*
|
||||
* @param string $action
|
||||
* @return string Number of events found
|
||||
*/
|
||||
public function export_events_for_wiki()
|
||||
public function export_events_for_wiki($action = '')
|
||||
{
|
||||
if ($this->filter === 'adm')
|
||||
{
|
||||
$wiki_page = '= ACP Template Events =' . "\n";
|
||||
if ($action === 'diff')
|
||||
{
|
||||
$wiki_page = '=== ACP Template Events ===' . "\n";
|
||||
}
|
||||
else
|
||||
{
|
||||
$wiki_page = '= ACP Template Events =' . "\n";
|
||||
}
|
||||
$wiki_page .= '{| class="zebra sortable" cellspacing="0" cellpadding="5"' . "\n";
|
||||
$wiki_page .= '! Identifier !! Placement !! Added in Release !! Explanation' . "\n";
|
||||
}
|
||||
else
|
||||
{
|
||||
$wiki_page = '= Template Events =' . "\n";
|
||||
if ($action === 'diff')
|
||||
{
|
||||
$wiki_page = '=== Template Events ===' . "\n";
|
||||
}
|
||||
else
|
||||
{
|
||||
$wiki_page = '= Template Events =' . "\n";
|
||||
}
|
||||
$wiki_page .= '{| class="zebra sortable" cellspacing="0" cellpadding="5"' . "\n";
|
||||
$wiki_page .= '! Identifier !! Prosilver Placement (If applicable) !! Subsilver Placement (If applicable) !! Added in Release !! Explanation' . "\n";
|
||||
}
|
||||
|
@@ -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)
|
||||
|
Reference in New Issue
Block a user