1<?php
2function pullInWikiData ($dokuPageId, $namespace, $topic) {
3    global $conf;
4    if(!defined('DOKU_INC')) define('DOKU_INC',realpath(dirname(__FILE__).'/../../../../').'/');
5    require (DOKU_INC . 'inc/init.php');
6    require_once (DOKU_INC . 'inc/parserutils.php');
7    p_set_metadata('issue:sidebar_right', array('plugin_geonav_page'=>$dokuPageId));
8    $file = wikiFN($dokuPageId);
9    $data = io_readWikiPage($file, $dokuPageId, $rev=false);
10    $html = p_render('xhtml',p_get_instructions($data),$info);
11    return $html;
12}
13?>