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
plugin:relativelinks [2009-01-03 02:00]
70.103.232.219
plugin:relativelinks [2017-10-28 15:10] (current)
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 57: Line 57:
                  'date'   => '2008-03-07',                  'date'   => '2008-03-07',
                  'name'   => 'Relative Links',                  'name'   => 'Relative Links',
-                 'desc'   => 'Replaces standard wiki-base-centric links with relative ones (anything which doesn't start with . or : is assumed to be relative to the current namespace)',+                 'desc'   => 'Replaces standard wiki-base-centric links with relative ones (anything which doesn\'t start with . or : is assumed to be relative to the current namespace)',
                  );                  );
   }   }
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.1230944448.txt.gz · Last modified: 2009-10-06 11:22 (external edit)

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