[Xfce4-commits] <wiki:master> Add reverse compatibility for tpl_flush() for DokuWiki < 2010-10-27

Mike Massonnet noreply at xfce.org
Tue Nov 2 18:16:01 CET 2010


Updating branch refs/heads/master
         to ab9acd4ac02217097bcfc18965fb1f5e7b4dd1c0 (commit)
       from 8cdba51ac065eb904eb74443fa3b5c944f5597c4 (commit)

commit ab9acd4ac02217097bcfc18965fb1f5e7b4dd1c0
Author: Mike Massonnet <mmassonnet at xfce.org>
Date:   Tue Nov 2 18:15:44 2010 +0100

    Add reverse compatibility for tpl_flush() for DokuWiki < 2010-10-27

 lib/tpl/xfce/main.php |   18 +++++++++++++++---
 1 files changed, 15 insertions(+), 3 deletions(-)

diff --git a/lib/tpl/xfce/main.php b/lib/tpl/xfce/main.php
index 25403d9..5da65f1 100644
--- a/lib/tpl/xfce/main.php
+++ b/lib/tpl/xfce/main.php
@@ -10,6 +10,18 @@
 // must be run from within DokuWiki
 if (!defined('DOKU_INC')) die();
 
+/**
+ * Reverse compatibility for DokuWiki < 2010-10-27
+ */
+function __tpl_flush(){
+	if (function_exists('tpl_flush')){
+		tpl_flush();
+	} else {
+		ob_flush();
+		flush();
+	}
+}
+
 ?>
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
@@ -82,7 +94,7 @@ if (!defined('DOKU_INC')) die();
     </div>
 
   </div>
-  <?php tpl_flush()?>
+  <?php __tpl_flush()?>
 
   <div class="page">
     <!-- wikipage start -->
@@ -92,7 +104,7 @@ if (!defined('DOKU_INC')) die();
 
   <div class="clearer"> </div>
 
-  <?php tpl_flush()?>
+  <?php __tpl_flush()?>
 
   <div class="stylefoot">
 
@@ -101,7 +113,7 @@ if (!defined('DOKU_INC')) die();
         <?php tpl_pageinfo()?>
       </div>
       <div class="user">
-        <?php tpl_userinfo()?>
+        <?php tpl_userinfo()?> 
       </div>
     </div>
 



More information about the Xfce4-commits mailing list