]> git.mxchange.org Git - friendica-addons.git/commitdiff
XMPP: Don't show the addon on the federation page.
authorMichael Vogel <icarus@dabo.de>
Sun, 17 Jan 2016 13:54:31 +0000 (14:54 +0100)
committerMichael Vogel <icarus@dabo.de>
Sun, 17 Jan 2016 13:54:31 +0000 (14:54 +0100)
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";