]> git.immae.eu Git - github/shaarli/Shaarli.git/commitdiff
Merge remote-tracking branch 'ArthurHoaro/input-escape' into next
authornodiscc <nodiscc@gmail.com>
Tue, 23 Jun 2015 22:51:38 +0000 (00:51 +0200)
committernodiscc <nodiscc@gmail.com>
Tue, 23 Jun 2015 22:51:38 +0000 (00:51 +0200)
Conflicts:
index.php

1  2 
application/LinkDB.php
index.php

Simple merge
diff --cc index.php
index f116a87b55cb8dbdb30b968d2a633fa8f71273c7,39b01a2eb0eb3c3457a78da481f459367220d538..dd3ec3a41a4fd3bc2e2a641707e52d7768aba94f
+++ b/index.php
@@@ -781,10 -791,7 +795,11 @@@ function showATOM(
      $cached = $cache->cachedVersion(); if (!empty($cached)) { echo $cached; exit; }
      // If cached was not found (or not usable), then read the database and build the response:
  
 -    $LINKSDB = new LinkDB(isLoggedIn() || $GLOBALS['config']['OPEN_SHAARLI']);  // Read links from database (and filter private links if used it not logged in).
++// Read links from database (and filter private links if used it not logged in).
 +    $LINKSDB = new LinkDB(
 +        isLoggedIn() || $GLOBALS['config']['OPEN_SHAARLI'],
 +        $GLOBALS['config']['HIDE_PUBLIC_LINKS']
 +    );
  
      // Optionally filter the results:
      $linksToDisplay=array();
@@@ -865,11 -872,7 +880,12 @@@ function showDailyRSS(
      $cache = new pageCache(pageUrl(),startsWith($query,'do=dailyrss') && !isLoggedIn());
      $cached = $cache->cachedVersion(); if (!empty($cached)) { echo $cached; exit; }
      // If cached was not found (or not usable), then read the database and build the response:
 -    $LINKSDB = new LinkDB(isLoggedIn() || $GLOBALS['config']['OPEN_SHAARLI']);  // Read links from database (and filter private links if used it not logged in).
 +
++// Read links from database (and filter private links if used it not logged in).
 +    $LINKSDB = new LinkDB(
 +        isLoggedIn() || $GLOBALS['config']['OPEN_SHAARLI'],
 +        $GLOBALS['config']['HIDE_PUBLIC_LINKS']
 +    );
  
      /* Some Shaarlies may have very few links, so we need to look
         back in time (rsort()) until we have enough days ($nb_of_days).