Changeset 7ddeb0c for apps


Ignore:
Timestamp:
Jun 21, 2018 11:13:29 AM (2 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
07f7f2b
Parents:
00c1fc6
Message:

i2psnark: Remove tracker links unless non-default

Location:
apps/i2psnark/java/src/org/klomp/snark
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • apps/i2psnark/java/src/org/klomp/snark/SnarkManager.java

    r00c1fc6 r7ddeb0c  
    26792679    }
    26802680
     2681    /**
     2682     *  Has the default tracker list been modified?
     2683     *  @since 0.9.35
     2684     */
     2685    public boolean hasModifiedTrackers() {
     2686        return _config.containsKey(PROP_TRACKERS);
     2687    }
     2688
    26812689    /** @since 0.9 */
    26822690    private void initTrackerMap() {
  • apps/i2psnark/java/src/org/klomp/snark/web/I2PSnarkServlet.java

    r00c1fc6 r7ddeb0c  
    351351            out.write("</a>\n");
    352352            sortedTrackers = _manager.getSortedTrackers();
    353             if (_context.isRouterContext()) {
    354                 //out.write("<a href=\"http://forum.i2p/viewforum.php?f=21\" class=\"snarkNav nav_forum\" target=\"_blank\">");
    355                 //out.write(_t("Forum"));
    356                 //out.write("</a>\n");
     353            if (_context.isRouterContext() && _manager.hasModifiedTrackers()) {
    357354                for (Tracker t : sortedTrackers) {
    358355                    if (t.baseURL == null || !t.baseURL.startsWith("http"))
Note: See TracChangeset for help on using the changeset viewer.