@@ -61,18 +61,18 @@ discard block |
||
61 | 61 | |
62 | 62 | // Take the id of the source |
63 | 63 | // It can be a rendering of a sidebar |
64 | - if ($ID == $INFO['id']) { |
|
65 | - if (strstr($match, "#")) { |
|
66 | - $includeNS = substr(strstr($match, "#", FALSE), 1); |
|
67 | - $match = strstr($match, "#", TRUE); |
|
68 | - } |
|
64 | + if ($ID == $INFO['id']) { |
|
65 | + if (strstr($match, "#")) { |
|
66 | + $includeNS = substr(strstr($match, "#", FALSE), 1); |
|
67 | + $match = strstr($match, "#", TRUE); |
|
68 | + } |
|
69 | 69 | |
70 | - $match = ($match == '.') ? $id : $match; |
|
70 | + $match = ($match == '.') ? $id : $match; |
|
71 | 71 | |
72 | - if (strstr($match, ".:")) { |
|
73 | - resolve_pageid(getNS($id), $match, $exists); |
|
74 | - } |
|
75 | - } |
|
72 | + if (strstr($match, ".:")) { |
|
73 | + resolve_pageid(getNS($id), $match, $exists); |
|
74 | + } |
|
75 | + } |
|
76 | 76 | |
77 | 77 | return (array($match, $includeNS)); |
78 | 78 | } |
@@ -83,17 +83,17 @@ discard block |
||
83 | 83 | */ |
84 | 84 | function render($mode, Doku_Renderer $renderer, $data) { |
85 | 85 | global $lang; |
86 | - global $ID; |
|
87 | - global $INFO; |
|
86 | + global $ID; |
|
87 | + global $INFO; |
|
88 | 88 | |
89 | - if ($mode == 'xhtml') { |
|
89 | + if ($mode == 'xhtml') { |
|
90 | 90 | $renderer->info['cache'] = false; |
91 | 91 | |
92 | 92 | @require_once(DOKU_INC.'inc/fulltext.php'); |
93 | - $page_id = $data[0]; |
|
94 | - if($page_id == '.') { |
|
95 | - $page_id = $INFO['id']; |
|
96 | - } |
|
93 | + $page_id = $data[0]; |
|
94 | + if($page_id == '.') { |
|
95 | + $page_id = $INFO['id']; |
|
96 | + } |
|
97 | 97 | $backlinks = ft_backlinks($page_id); |
98 | 98 | |
99 | 99 | dbglog($backlinks, "backlinks: all backlinks to: $page_id"); |
@@ -91,7 +91,7 @@ |
||
91 | 91 | |
92 | 92 | @require_once(DOKU_INC.'inc/fulltext.php'); |
93 | 93 | $page_id = $data[0]; |
94 | - if($page_id == '.') { |
|
94 | + if ($page_id == '.') { |
|
95 | 95 | $page_id = $INFO['id']; |
96 | 96 | } |
97 | 97 | $backlinks = ft_backlinks($page_id); |
@@ -15,7 +15,9 @@ |
||
15 | 15 | */ |
16 | 16 | |
17 | 17 | // must be run within Dokuwiki |
18 | -if (!defined('DOKU_INC')) die(); |
|
18 | +if (!defined('DOKU_INC')) { |
|
19 | + die(); |
|
20 | +} |
|
19 | 21 | |
20 | 22 | /** |
21 | 23 | * All DokuWiki plugins to extend the parser/rendering mechanism |