DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:relativelinks

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
plugin:relativelinks [2009-01-03 02:00] 70.103.232.219plugin:relativelinks [2017-10-28 15:00] – [Code] turnermm
Line 11: Line 11:
 conflicts  conflicts 
 similar    :  similar    : 
-tags       : relativelinks+tags       : links namespace
 ---- ----
  
Line 34: Line 34:
 ====== Code ====== ====== Code ======
  
-<code php> +<code php syntax.php> 
-<?php+<?php 
 /** /**
  * Relative Linking Plugin  * Relative Linking Plugin
Line 64: Line 64:
    * Register its handlers with the DokuWiki's event controller    * Register its handlers with the DokuWiki's event controller
    */    */
-  function register(&$controller) {+  function register(Doku_Event_Handler $controller) {
     $controller->register_hook('PARSER_WIKITEXT_PREPROCESS', 'BEFORE',  $this, '_hookrellink');     $controller->register_hook('PARSER_WIKITEXT_PREPROCESS', 'BEFORE',  $this, '_hookrellink');
   }   }
Line 78: Line 78:
 } }
 </code> </code>
- 
  
  
plugin/relativelinks.txt · Last modified: 2017-10-28 15:10 by turnermm

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki