Completed
Pull Request — master (#19)
by Mark
01:37
created
syntax.php 3 patches
Indentation   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -61,18 +61,18 @@  discard block
 block discarded – undo
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
 block discarded – undo
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");
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -91,7 +91,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,9 @@
 block discarded – undo
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
Please login to merge, or discard this patch.