@@ -13,10 +13,16 @@ discard block |
||
| 13 | 13 | * @author Michael Klier <[email protected]> |
| 14 | 14 | * @author Mark C. Prins <[email protected]> |
| 15 | 15 | */ |
| 16 | -if (!defined('DOKU_INC')) die(); |
|
| 16 | +if (!defined('DOKU_INC')) { |
|
| 17 | + die(); |
|
| 18 | +} |
|
| 17 | 19 | |
| 18 | -if (!defined('DOKU_PLUGIN')) define('DOKU_PLUGIN', DOKU_INC.'lib/plugins/'); |
|
| 19 | -if (!defined('DW_LF')) define('DW_LF', "\n"); |
|
| 20 | +if (!defined('DOKU_PLUGIN')) { |
|
| 21 | + define('DOKU_PLUGIN', DOKU_INC.'lib/plugins/'); |
|
| 22 | +} |
|
| 23 | +if (!defined('DW_LF')) { |
|
| 24 | + define('DW_LF', "\n"); |
|
| 25 | +} |
|
| 20 | 26 | |
| 21 | 27 | require_once(DOKU_PLUGIN.'syntax.php'); |
| 22 | 28 | require_once(DOKU_INC.'inc/parserutils.php'); |
@@ -126,7 +132,9 @@ discard block |
||
| 126 | 132 | |
| 127 | 133 | foreach($backlinks as $backlink){ |
| 128 | 134 | $name = p_get_metadata($backlink, 'title'); |
| 129 | - if(empty($name)) $name = $backlink; |
|
| 135 | + if(empty($name)) { |
|
| 136 | + $name = $backlink; |
|
| 137 | + } |
|
| 130 | 138 | $renderer->doc .= '<li><div class="li">'; |
| 131 | 139 | $renderer->doc .= html_wikilink(':'.$backlink, $name); |
| 132 | 140 | $renderer->doc .= '</div></li>' . DW_LF; |