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

commit bf6afef746f1276aa80560c879c8c77543b6f835
Author: Mike Massonnet <[email protected]>
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();
 ?>
_______________________________________________
Xfce4-commits mailing list
[email protected]
http://foo-projects.org/mailman/listinfo/xfce4-commits

Reply via email to