-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c2ebea5
commit e7268f9
Showing
1 changed file
with
4 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
<?php | ||
|
||
use dokuwiki\plugin\xref\Grok; | ||
|
||
/** | ||
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html) | ||
* @author Andreas Gohr <[email protected]> | ||
|
@@ -7,15 +10,6 @@ | |
class syntax_plugin_xref extends DokuWiki_Syntax_Plugin | ||
{ | ||
|
||
protected $dir = ''; | ||
protected $web = ''; | ||
|
||
public function __construct() | ||
{ | ||
$this->dir = rtrim($this->getConf('dir'), '/'); | ||
$this->web = rtrim($this->getConf('web'), '/'); | ||
} | ||
|
||
/** @inheritdoc */ | ||
public function getType() | ||
{ | ||
|
@@ -60,7 +54,7 @@ public function render($format, Doku_Renderer $R, $data) | |
if ($format != 'xhtml') return false; | ||
|
||
list($reference, $name) = $data; | ||
$grok = new \dokuwiki\plugin\xref\Grok($reference, $this->getConf('grokbaseurl')); | ||
$grok = new Grok($reference, $this->getConf('grokbaseurl')); | ||
$count = $grok->getResultCount(); | ||
|
||
$link = [ | ||
|