summaryrefslogtreecommitdiffstats
path: root/plugins/resource.dokuwiki.php
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/resource.dokuwiki.php')
-rw-r--r--plugins/resource.dokuwiki.php33
1 files changed, 0 insertions, 33 deletions
diff --git a/plugins/resource.dokuwiki.php b/plugins/resource.dokuwiki.php
deleted file mode 100644
index 4842524..0000000
--- a/plugins/resource.dokuwiki.php
+++ /dev/null
@@ -1,33 +0,0 @@
-<?php
-
-class Smarty_Resource_Dokuwiki extends Smarty_Resource_Custom {
-
- private function build_pagename($name) {
- return 'hostinfo:templates:' . cleanID($name);
- }
-
- protected function fetch($name, &$source, &$mtime)
- {
- $page = $this->build_pagename($name);
- if (page_exists($page)) {
- $source = rawWiki($page);
- $mtime = p_get_metadata($page, 'last_change date');
- }
- else {
- $source = null;
- $mtime = null;
- }
- }
-
- protected function fetchTimestamp($name) {
- $page = $this->build_pagename($name);
- if (page_exists($page)) {
- return p_get_metadata($page, 'last_change date');
- }
- else {
- return null;
- }
- }
-}
-
-?>