aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Widget/Wiki_page_history.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2022-05-06 07:29:59 +0000
committerMario <mario@mariovavti.com>2022-05-06 07:29:59 +0000
commitc334fc9d22c7f2633d9b7e8d9e0fae1f2bb40547 (patch)
treee32853a8c12369c31f20cbb569b198b4d852a63f /Zotlabs/Widget/Wiki_page_history.php
parent85200883763bfa3e25dc48f68d0937d3e704d399 (diff)
downloadvolse-hubzilla-c334fc9d22c7f2633d9b7e8d9e0fae1f2bb40547.tar.gz
volse-hubzilla-c334fc9d22c7f2633d9b7e8d9e0fae1f2bb40547.tar.bz2
volse-hubzilla-c334fc9d22c7f2633d9b7e8d9e0fae1f2bb40547.zip
move wiki to addons
Diffstat (limited to 'Zotlabs/Widget/Wiki_page_history.php')
-rw-r--r--Zotlabs/Widget/Wiki_page_history.php36
1 files changed, 0 insertions, 36 deletions
diff --git a/Zotlabs/Widget/Wiki_page_history.php b/Zotlabs/Widget/Wiki_page_history.php
deleted file mode 100644
index 3c9f5ed1a..000000000
--- a/Zotlabs/Widget/Wiki_page_history.php
+++ /dev/null
@@ -1,36 +0,0 @@
-<?php
-
-/**
- * * Name: Wiki page history
- * * Description: History of an existing wiki page
- * * Requires: wiki
- */
-
-namespace Zotlabs\Widget;
-
-class Wiki_page_history {
-
- function widget($arr) {
-
- $pageUrlName = ((array_key_exists('pageUrlName', $arr)) ? $arr['pageUrlName'] : '');
- $resource_id = ((array_key_exists('resource_id', $arr)) ? $arr['resource_id'] : '');
-
- $pageHistory = \Zotlabs\Lib\NativeWikiPage::page_history([
- 'channel_id' => \App::$profile_uid,
- 'observer_hash' => get_observer_hash(),
- 'resource_id' => $resource_id,
- 'pageUrlName' => $pageUrlName
- ]);
-
- return replace_macros(get_markup_template('nwiki_page_history.tpl'), array(
- '$pageHistory' => $pageHistory['history'],
- '$permsWrite' => $arr['permsWrite'],
- '$name_lbl' => t('Name'),
- '$msg_label' => t('Message','wiki_history'),
- '$date_lbl' => t('Date'),
- '$revert_btn' => t('Revert'),
- '$compare_btn' => t('Compare')
- ));
-
- }
-}