Skip to content

Commit

Permalink
remove obsolete config member vars
Browse files Browse the repository at this point in the history
  • Loading branch information
splitbrain committed Jan 28, 2022
1 parent c2ebea5 commit e7268f9
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions syntax.php
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]>
Expand All @@ -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()
{
Expand Down Expand Up @@ -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 = [
Expand Down

0 comments on commit e7268f9

Please sign in to comment.