]> git.mxchange.org Git - friendica-addons.git/commitdiff
Merge pull request #337 from annando/1601-xmpp-federation
authorTobias Diekershoff <tobias.diekershoff@gmx.net>
Sun, 17 Jan 2016 14:03:17 +0000 (15:03 +0100)
committerTobias Diekershoff <tobias.diekershoff@gmx.net>
Sun, 17 Jan 2016 14:03:17 +0000 (15:03 +0100)
XMPP: Don't show the addon on the federation page.

xmpp/xmpp.php

index 21ac59cd2f800b95e50b898558caf4cab883aafc..753ea0a505735337692185e69bb3dd0b57fd332f 100644 (file)
@@ -125,6 +125,9 @@ function xmpp_converse(&$a,&$s) {
        if (!get_pconfig(local_user(),"xmpp","enabled"))
                return;
 
+       if (in_array($a->query_string, array("admin/federation/")))
+               return;
+
        $a->page['htmlhead'] .= '<link type="text/css" rel="stylesheet" media="screen" href="addon/xmpp/converse/css/converse.css" />'."\n";
        $a->page['htmlhead'] .= '<script src="addon/xmpp/converse/builds/converse.min.js"></script>'."\n";