Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F1880425
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Size
1 KB
Subscribers
None
View Options
diff --git a/action.php b/action.php
--- a/action.php
+++ b/action.php
@@ -1,29 +1,29 @@
<?php
if(!defined('DOKU_INC')) die();
class action_plugin_abbrlist extends DokuWiki_Action_Plugin {
// Register our hooks
- function register(&$controller) {
+ function register(Doku_Event_Handler $controller) {
$controller->register_hook('PARSER_CACHE_USE', 'BEFORE', $this, 'handle_parser_cache_use');
}
function handle_parser_cache_use(&$event, $param)
{
global $ID;
$cache = &$event->data;
if(!isset($cache->page)) return;
//purge only xhtml cache
if($cache->mode != "xhtml") return;
$abbrMeta = p_get_metadata($ID, 'abbrlist');
if(!$abbrMeta)
return;
$cache->depends['files'][] = DOKU_INC + 'conf/acronyms.conf';
$cache->depends['files'][] = DOKU_INC + 'conf/acronyms.local.conf';
}
}
\ No newline at end of file
diff --git a/plugin.info.txt b/plugin.info.txt
--- a/plugin.info.txt
+++ b/plugin.info.txt
@@ -1,7 +1,7 @@
base abbrlist
author Andreas Boehler
email dev@aboehler.at
-date 2015-10-15
+date 2016-04-21
name List abbreviations as a table
desc Show all abbreviations with their description as a table
url http://www.dokuwiki.org/plugin:abbrlist
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Fri, Jan 24, 4:49 AM (1 d, 21 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
532576
Default Alt Text
(1 KB)
Attached To
rABBRLIST DokuWiki abbrlist PlugIn
Event Timeline
Log In to Comment