Page Actions
Wiki Actions
User Actions
Submit This Story

The Blog plugin for dokuwiki

Fix: PHP5.3.0 Issue
    /* ---------- (X)HTML Output Functions ---------- */

    /**
     * Returns the XHTML output including the footer etc. for use with the blog plugin
     * FIXME remove after blogtng plugin officially replaces the blog plugin?
     *
     * @author Michael Klier <chi@chimeric.de>
     */
    function render_XHTML(&$include, &$renderer, $page, $lvl, $set_flags) {
        if(!$include->includes[$page]) {
            $renderer->doc = '';
            $include->includes[$page];
            $flags = $include->get_flags($set_flags);
            $ins = $include->_get_instructions($page, '', 'page', $lvl, $flags);
            foreach($ins as $i) {
                //call_user_func_array(array(&$renderer, $i[0]),$i[1]);
                // Changed for minor issue for PHP 5.3.0
                if ($i[1] != null) {
                    call_user_func_array(array(&$renderer, $i[0]),  $i[1]);
                    }
                // Changed for minor issue for PHP 5.3.0
            }
            // Post process and return the output
            $data = array($mode, $renderer->doc);
            trigger_event('RENDERER_CONTENT_POSTPROCESS',$data);
            return $renderer->doc;
        }
    }
 
wiki/blog_plugin.txt · Last modified: 2009/12/31 09:24 (external edit)     Back to top
Recent changes RSS feed Creative Commons License Powered by PHP Driven by DokuWiki