summaryrefslogtreecommitdiff
path: root/syntax.php
diff options
context:
space:
mode:
authorYves Fischer <yvesf-git@xapek.org>2011-10-22 01:41:35 +0200
committerYves Fischer <yvesf-git@xapek.org>2011-10-22 02:11:47 +0200
commitfc87f3d31d50ec60fdf4edc3eda68ad77e86e11c (patch)
tree1a5e053016f3f751f8e84221a1b775bdaba972fe /syntax.php
parenteccaa6b2507b4217809b2cd955c0014bd043fe59 (diff)
downloaddokuwiki-plugin-treenav-fc87f3d31d50ec60fdf4edc3eda68ad77e86e11c.tar.gz
dokuwiki-plugin-treenav-fc87f3d31d50ec60fdf4edc3eda68ad77e86e11c.zip
prefix global function/class
Diffstat (limited to 'syntax.php')
-rw-r--r--syntax.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/syntax.php b/syntax.php
index 779b40d..d3cc9f2 100644
--- a/syntax.php
+++ b/syntax.php
@@ -8,13 +8,13 @@ if(!defined('DOKU_PLUGIN')) define('DOKU_PLUGIN',DOKU_INC.'lib/plugins/');
require_once DOKU_PLUGIN.'syntax.php';
class syntax_plugin_treenav extends DokuWiki_Syntax_Plugin {
- private $keys = array('icon', 'title');
+ var $_keys = array('icon', 'title');
function getType() { return 'baseonly'; }
function getSort() { return 32; }
function connectTo($mode) {
- foreach ($this->keys as $key) {
+ foreach ($this->_keys as $key) {
$this->Lexer->addSpecialPattern('~~'.$key.':.*?~~',$mode,'plugin_treenav');
}
}
@@ -24,7 +24,7 @@ class syntax_plugin_treenav extends DokuWiki_Syntax_Plugin {
case DOKU_LEXER_SPECIAL:
$match = substr($match, 2, -2);
@list($key, $value) = explode(':', $match, 2);
- if (in_array($key, $this->keys)) {
+ if (in_array($key, $this->_keys)) {
return array($key, $value);
}
}