]> git.pld-linux.org Git - packages/dokuwiki.git/commitdiff
pass $REV to export buttons to be able to export older pages
authorElan Ruusamäe <glen@delfi.ee>
Sat, 1 Sep 2012 20:17:04 +0000 (23:17 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Sat, 1 Sep 2012 20:17:04 +0000 (23:17 +0300)
more-buttons.patch

index f634aaaa0c23a5660b6b9b3c12b91c5dfb0b7b7a..cef2d152bf6710098eceafe919c0e351361a04fc 100644 (file)
          <?php tpl_button('recent')?>
          <?php tpl_searchform()?>&nbsp;
        </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>';
 +                    }
 +
This page took 0.192443 seconds and 4 git commands to generate.