DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:previous

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
plugin:previous [2012-10-21 06:36]
98.248.89.12 Updated code tags with filenames.
plugin:previous [2015-05-27 22:36] (current)
Klap-in
Line 31: Line 31:
 if (!defined('DOKU_INC')) die(); if (!defined('DOKU_INC')) die();
  
-if (!defined('DOKU_LF')) define('DOKU_LF', "\n"); 
-if (!defined('DOKU_TAB')) define('DOKU_TAB', "\t"); 
-if (!defined('DOKU_PLUGIN')) define('DOKU_PLUGIN',DOKU_INC.'lib/plugins/'); 
- 
-require_once DOKU_PLUGIN.'syntax.php'; 
  
 class syntax_plugin_previous extends DokuWiki_Syntax_Plugin { class syntax_plugin_previous extends DokuWiki_Syntax_Plugin {
Line 46: Line 41:
  
  
-    function handle($match, $state, $pos, &$handler){+    function handle($match, $state, $pos, Doku_Handler $handler){
  $match = substr($match, 8, -2);  $match = substr($match, 8, -2);
         list($url, $alt)   = explode('>',$match,2);         list($url, $alt)   = explode('>',$match,2);
Line 59: Line 54:
  
  
- function render($mode, &$R, $data) {+ function render($mode, Doku_Renderer $R, $data) {
         if($mode != 'xhtml') return false;         if($mode != 'xhtml') return false;
  
plugin/previous.1350794182.txt.gz ยท Last modified: 2012-10-21 06:36 by 98.248.89.12