[packages/dokuwiki] pass $REV to export buttons to be able to export older pages
glen
glen at pld-linux.org
Sat Sep 1 22:17:38 CEST 2012
commit 382fafee53e28225cd5abfde229175fa4a780bca
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Sat Sep 1 23:17:04 2012 +0300
pass $REV to export buttons to be able to export older pages
more-buttons.patch | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
---
diff --git a/more-buttons.patch b/more-buttons.patch
index f634aaa..cef2d15 100644
--- a/more-buttons.patch
+++ b/more-buttons.patch
@@ -41,21 +41,22 @@
<?php tpl_button('recent')?>
<?php tpl_searchform()?>
</div>
---- dokuwiki/lib/tpl/dokuwiki/tpl_header.php~ 2012-09-01 22:54:08.000000000 +0300
-+++ dokuwiki/lib/tpl/dokuwiki/tpl_header.php 2012-09-01 22:54:16.816853164 +0300
-@@ -64,6 +64,18 @@
+--- dokuwiki/lib/tpl/dokuwiki/tpl_header.php 2012-09-01 22:54:16.816853164 +0300
++++ dokuwiki-2012-09-01/lib/tpl/dokuwiki/tpl_header.php 2012-09-01 23:14:51.484803869 +0300
+@@ -64,6 +64,19 @@
</div>
<ul>
<?php
++ global $REV;
+ if (!plugin_isdisabled('html2pdf') || !plugin_isdisabled('dw2pdf')) {
+ echo '<li>';
-+ tpl_link(wl($ID, 'do=export_pdf'), '<span>PDF Export</span>', 'class="action html2pdf"');
++ tpl_link(wl($ID, array('do' => 'export_pdf', 'rev' => $REV)), '<span>PDF Export</span>', 'class="action html2pdf"');
+ echo '</li>';
+ }
+
+ if (!plugin_isdisabled('odt')) {
+ echo '<li>';
-+ tpl_link(wl($ID, 'do=export_odt'), '<span>ODT Export</span>', 'class="action odt"');
++ tpl_link(wl($ID, array('do' => 'export_odt', 'rev' => $REV)), '<span>ODT Export</span>', 'class="action odt"');
+ echo '</li>';
+ }
+
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/dokuwiki.git/commitdiff/382fafee53e28225cd5abfde229175fa4a780bca
More information about the pld-cvs-commit
mailing list