diff options
| author | Joas Schilling <nickvergessen@gmx.de> | 2015-05-02 14:33:31 +0200 |
|---|---|---|
| committer | Joas Schilling <nickvergessen@gmx.de> | 2015-05-02 14:41:59 +0200 |
| commit | 96d97ae2d2afc3574d7ba28a40c40c1e772398fb (patch) | |
| tree | c680fdfb844603c5cd194b9594f96928ef96ef20 /phpBB/phpbb/event/php_exporter.php | |
| parent | bdad879508d7d3d36119d0d106682c213ff61f35 (diff) | |
| download | forums-96d97ae2d2afc3574d7ba28a40c40c1e772398fb.tar forums-96d97ae2d2afc3574d7ba28a40c40c1e772398fb.tar.gz forums-96d97ae2d2afc3574d7ba28a40c40c1e772398fb.tar.bz2 forums-96d97ae2d2afc3574d7ba28a40c40c1e772398fb.tar.xz forums-96d97ae2d2afc3574d7ba28a40c40c1e772398fb.zip | |
[ticket/13807] Add an option to generate a diff for the release highlights
PHPBB3-13807
Diffstat (limited to 'phpBB/phpbb/event/php_exporter.php')
| -rw-r--r-- | phpBB/phpbb/event/php_exporter.php | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/phpBB/phpbb/event/php_exporter.php b/phpBB/phpbb/event/php_exporter.php index 0857298c07..1e0bd4ac67 100644 --- a/phpBB/phpbb/event/php_exporter.php +++ b/phpBB/phpbb/event/php_exporter.php @@ -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) |
