[Xfce4-commits] <wiki:master> Use the translation plugin only if it was loaded

Mike Massonnet noreply at xfce.org
Sun Oct 17 09:54:01 CEST 2010


Updating branch refs/heads/master
         to bf6afef746f1276aa80560c879c8c77543b6f835 (commit)
       from d1a882972c8c345026fc3b776a1d2ae66382f745 (commit)

commit bf6afef746f1276aa80560c879c8c77543b6f835
Author: Mike Massonnet <mmassonnet at xfce.org>
Date:   Sun Oct 17 09:10:16 2010 +0200

    Use the translation plugin only if it was loaded

 lib/tpl/xfce/pageheader.html |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/lib/tpl/xfce/pageheader.html b/lib/tpl/xfce/pageheader.html
index fcbe680..8720d71 100644
--- a/lib/tpl/xfce/pageheader.html
+++ b/lib/tpl/xfce/pageheader.html
@@ -1,4 +1,5 @@
 <?php
 $translation = &plugin_load('syntax','translation');
-echo $translation->_showTranslations();
+if ($translation != NULL)
+	echo $translation->_showTranslations();
 ?>



More information about the Xfce4-commits mailing list