aboutsummaryrefslogtreecommitdiffhomepage
path: root/index.php
diff options
context:
space:
mode:
authorVirtualTam <virtualtam+github@flibidi.net>2016-10-20 20:41:24 +0200
committerGitHub <noreply@github.com>2016-10-20 20:41:24 +0200
commitfb6c8f770a07e38d5250ca4d6717445002e7bfb3 (patch)
tree499d26ccee0d0df3aeac5fe9d27faf2800721698 /index.php
parentceeb8fbeb89f69e41791ae192d073d6afea00f4b (diff)
parent7af9a41881ed0b9d44d18a0ce03a123a8441adf5 (diff)
downloadShaarli-fb6c8f770a07e38d5250ca4d6717445002e7bfb3.tar.gz
Shaarli-fb6c8f770a07e38d5250ca4d6717445002e7bfb3.tar.zst
Shaarli-fb6c8f770a07e38d5250ca4d6717445002e7bfb3.zip
Merge pull request #671 from ArthurHoaro/cleanup-code
Minor code cleanup: PHPDoc, spelling, unused variables, etc.
Diffstat (limited to 'index.php')
-rw-r--r--index.php8
1 files changed, 2 insertions, 6 deletions
diff --git a/index.php b/index.php
index f7e73bde..6d712aee 100644
--- a/index.php
+++ b/index.php
@@ -606,8 +606,6 @@ function showDailyRSS($conf) {
606 $absurl = escape(index_url($_SERVER).'?do=daily&day='.$day); // Absolute URL of the corresponding "Daily" page. 606 $absurl = escape(index_url($_SERVER).'?do=daily&day='.$day); // Absolute URL of the corresponding "Daily" page.
607 607
608 // Build the HTML body of this RSS entry. 608 // Build the HTML body of this RSS entry.
609 $html = '';
610 $href = '';
611 $links = array(); 609 $links = array();
612 610
613 // We pre-format some fields for proper output. 611 // We pre-format some fields for proper output.
@@ -833,7 +831,7 @@ function renderPage($conf, $pluginManager)
833 // Get only links which have a thumbnail. 831 // Get only links which have a thumbnail.
834 foreach($links as $link) 832 foreach($links as $link)
835 { 833 {
836 $permalink='?'.escape(smallhash($link['linkdate'])); 834 $permalink='?'.escape(smallHash($link['linkdate']));
837 $thumb=lazyThumbnail($conf, $link['url'],$permalink); 835 $thumb=lazyThumbnail($conf, $link['url'],$permalink);
838 if ($thumb!='') // Only output links which have a thumbnail. 836 if ($thumb!='') // Only output links which have a thumbnail.
839 { 837 {
@@ -867,7 +865,7 @@ function renderPage($conf, $pluginManager)
867 $maxcount = max($maxcount, $value); 865 $maxcount = max($maxcount, $value);
868 } 866 }
869 867
870 // Sort tags alphabetically: case insensitive, support locale if avalaible. 868 // Sort tags alphabetically: case insensitive, support locale if available.
871 uksort($tags, function($a, $b) { 869 uksort($tags, function($a, $b) {
872 // Collator is part of PHP intl. 870 // Collator is part of PHP intl.
873 if (class_exists('Collator')) { 871 if (class_exists('Collator')) {
@@ -1670,8 +1668,6 @@ function buildLinkList($PAGE,$LINKSDB, $conf, $pluginManager)
1670 $next_page_url = '?page=' . ($page-1) . $searchtermUrl . $searchtagsUrl; 1668 $next_page_url = '?page=' . ($page-1) . $searchtermUrl . $searchtagsUrl;
1671 } 1669 }
1672 1670
1673 $token = isLoggedIn() ? getToken($conf) : '';
1674
1675 // Fill all template fields. 1671 // Fill all template fields.
1676 $data = array( 1672 $data = array(
1677 'previous_page_url' => $previous_page_url, 1673 'previous_page_url' => $previous_page_url,